mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
main/glm: modernize APKBUILD
This commit is contained in:
parent
40cdf3534f
commit
26d4439e33
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user