aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/glm/APKBUILD25
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"
}