diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-02-16 13:49:26 +0000 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-02-18 23:29:06 +0100 |
commit | 26d4439e33e86857aafab3b874502f42a73ce6c8 (patch) | |
tree | da2ce9683e29114433ed724c7d10960e2d78eb31 /main | |
parent | 40cdf3534fef3e22e6fbce05a34ff18b125d8ea9 (diff) | |
download | aports-26d4439e33e86857aafab3b874502f42a73ce6c8.tar.bz2 aports-26d4439e33e86857aafab3b874502f42a73ce6c8.tar.xz |
main/glm: modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r-- | main/glm/APKBUILD | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/main/glm/APKBUILD b/main/glm/APKBUILD index fdad0d41f9..b622c9123f 100644 --- a/main/glm/APKBUILD +++ b/main/glm/APKBUILD @@ -1,43 +1,30 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=glm pkgver=0.9.8.5 -pkgrel=0 +pkgrel=1 pkgdesc="C++ mathematics library for graphics programming" url="http://glm.g-truc.net/" arch="all" license="MIT" -depends="" -depends_dev="" -makedepends="$depends_dev cmake" -install="" +makedepends="cmake" subpackages="$pkgname-dev" source="https://github.com/g-truc/glm/releases/download/$pkgver/glm-$pkgver.zip" -_builddir="$srcdir"/glm -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname" build() { - cd "$_builddir" + cd "$builddir" mkdir build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_LIBDIR=lib \ - || return 1 + -DCMAKE_INSTALL_LIBDIR=lib make } package() { - cd "$_builddir"/build + cd "$builddir"/build make install DESTDIR="$pkgdir" } |