blob: 17fc0f4ef52d03828b5a4298a2c6482d7e86988e (
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
|
# Maintainer: Kat Witten <turtlewit@live.com>
pkgname=cglm
pkgver=0.7.0
pkgrel=1
pkgdesc="OpenGL Mathematics (glm) for C"
arch=('x86_64')
url="https://github.com/recp/cglm"
license=('MIT')
depends=('glibc')
source=("$pkgname-$pkgver.tar.gz::https://github.com/recp/cglm/archive/v$pkgver.tar.gz")
md5sums=('a6f556e6dd1804d4bcb0cba3c848fe9f')
build() {
cd "$pkgname-$pkgver"
sh autogen.sh
./configure --prefix=/usr
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
cp -a include/cglm/* "$pkgdir/usr/include/cglm/" # work around missing header file not copied with make install
install -d "$pkgdir/usr/share/licenses/cglm/"
install LICENSE "$pkgdir/usr/share/licenses/cglm/"
install -d "$pkgdir/usr/lib/pkgconfig/"
install cglm.pc "$pkgdir/usr/lib/pkgconfig/"
}
|