blob: b063ea2676ec665a0f605553efaddbcb34a26e05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Sakure <duarm0 at disroot dot org>
pkgname=cglm-git
_pkgname=cglm
pkgver=v0.8.5.r40.g7dfe67c
pkgrel=1
pkgdesc="Highly Optimized Graphics Math (glm) for C"
arch=('x86_64')
url="https://github.com/recp/cglm"
license=('MIT')
depends=('glibc')
conflicts=('cglm')
provides=('cglm')
source=("git+https://github.com/recp/cglm.git")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_BUILD_TYPE=Release
cmake --build build --config release
}
package() {
cd "$_pkgname"
make -C build DESTDIR="$pkgdir/" install
install -d "$pkgdir/usr/share/licenses/cglm/"
install LICENSE "$pkgdir/usr/share/licenses/cglm/"
install -d "$pkgdir/usr/lib/pkgconfig/"
install build/cglm.pc "$pkgdir/usr/lib/pkgconfig/"
}
|