updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libtxc_dxtn / PKGBUILD
blobf25d614596fe45e884e4c4b8d747c5821a207b82
1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
3 pkgname=libtxc_dxtn
4 pkgver=1.0.1
5 pkgrel=2
6 arch=(i686 x86_64)
7 pkgdesc="Texture compression library for Mesa"
8 url="http://dri.freedesktop.org/wiki/S3TC"
9 license=(custom:BSD)
10 depends=(mesa)
11 options=(!libtool)
12 source=(http://people.freedesktop.org/~cbrill/$pkgname/$pkgname-$pkgver.tar.bz2)
13 md5sums=('7105107f07ac49753f4b61ba9d0c79c5')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
17   ./configure --prefix=/usr
18   make
21 package() {
22   cd "$srcdir/$pkgname-$pkgver"
23   make DESTDIR="$pkgdir" install
25   # License
26   mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
27   sed -n '5,22{s|^ \* \?||;p}' txc_dxtn.h \
28     > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"