[arch-commits] Commit in mygui/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Mar 4 20:22:05 UTC 2020
Date: Wednesday, March 4, 2020 @ 20:22:05
Author: svenstaro
Revision: 590501
upgpkg: mygui 3.4.0-1
Modified:
mygui/trunk/PKGBUILD
----------+
PKGBUILD | 46 +++++++++++++++++-----------------------------
1 file changed, 17 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-04 20:21:16 UTC (rev 590500)
+++ PKGBUILD 2020-03-04 20:22:05 UTC (rev 590501)
@@ -1,34 +1,32 @@
# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
# Contributor: Andrew Belitsky <belitsky.a at gmail.com>
-pkgbase=mygui
-pkgname=('mygui' 'mygui-docs')
-pkgver=3.2.2
-pkgrel=14
+pkgname=mygui
+replaces=('mygui-docs')
+pkgver=3.4.0
+pkgrel=1
pkgdesc="A multilayer and overlappable GUI System"
arch=('x86_64')
url="http://mygui.info/"
license=('LGPL')
-depends=('boost-libs' 'ois')
+depends=('boost-libs' 'sdl2' 'sdl2_image' 'glu')
makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu')
install=mygui.install
source=("https://github.com/MyGUI/mygui/archive/MyGUI${pkgver}.tar.gz")
-md5sums=('0023a689a2a63febc2cc703f81f86c62')
+sha512sums=('3f560fd9c7e5b514da40e41c7753dc20649f80b763f5ee20afc9627df3be14242ea833eff09eac16b9e88b1c9fbed7c09def0c5068c832e710c247191fb53487')
+prepare() {
+ mkdir -p mygui-MyGUI$pkgver/build
+}
+
build() {
- cd $srcdir/mygui-MyGUI$pkgver
+ cd mygui-MyGUI$pkgver/build
# change CMake config so demos install to /opt
- sed -i 's:"bin:"../opt/MYGUI:' CMake/Utils/MyGUIConfigTargets.cmake
+ sed -i 's:"bin:"../opt/MYGUI:' ../CMake/Utils/MyGUIConfigTargets.cmake
sed -i -e 's:../share:/usr/share:' \
-e 's:"bin":"../opt/MYGUI":' \
- CMake/InstallResources.cmake
- sed -i '71 i set(MYGUI_GCC_VISIBILITY_FLAGS "")' CMakeLists.txt
- sed -i 's/\${OIS_LIBRARIES}/${OIS_LIBRARIES} boost_system/g' Common/CMakeLists.txt
+ ../CMake/InstallResources.cmake
- # get a clean build dir
- [[ -d build ]] && rm -rf build
- mkdir build && cd build
-
# generate CMake Makefile
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -36,9 +34,8 @@
-DMYGUI_INSTALL_TOOLS=TRUE \
-DMYGUI_INSTALL_DOCS=TRUE \
-DMYGUI_INSTALL_MEDIA=TRUE \
- -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2/ \
- -DMYGUI_BUILD_DEMOS=FALSE \
- -DMYGUI_BUILD_TOOLS=FALSE \
+ -DMYGUI_BUILD_DEMOS=TRUE \
+ -DMYGUI_BUILD_TOOLS=TRUE \
-DCMAKE_BUILD_TYPE=Release \
-DMYGUI_RENDERSYSTEM=7 \
-DBUILD_SHARED_LIBS=TRUE
@@ -47,11 +44,9 @@
make api-docs
}
-package_mygui() {
- optdepends=('mygui-docs: documentation')
+package() {
+ cd mygui-MyGUI$pkgver/build
- cd $srcdir/mygui-MyGUI$pkgver/build
-
make DESTDIR="$pkgdir" install
# make demos work
@@ -58,14 +53,7 @@
# install -Dm775 lib/libCommon.so ${pkgdir}/usr/lib/libCommon.so
# chown root:users $pkgdir/opt/MYGUI
# chmod 775 $pkgdir/opt/MYGUI
-}
-package_mygui-docs() {
- pkgdesc="Documentation for mygui"
- depends=()
-
- cd $srcdir/mygui-MyGUI$pkgver/build
-
# install docs
install -d $pkgdir/usr/share/doc/
cp -r Docs/html $pkgdir/usr/share/doc/MYGUI
More information about the arch-commits
mailing list