diff options
Diffstat (limited to 'extra/libtxc_dxtn/PKGBUILD')
-rw-r--r-- | extra/libtxc_dxtn/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/libtxc_dxtn/PKGBUILD b/extra/libtxc_dxtn/PKGBUILD new file mode 100644 index 000000000..b88245210 --- /dev/null +++ b/extra/libtxc_dxtn/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 190835 2013-07-18 12:20:11Z lcarlier $ +# Maintainer: Laurent Carlier <lordheavym@gmail.com> +# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com> + +pkgname=libtxc_dxtn +pkgver=1.0.1 +pkgrel=5 +arch=(i686 x86_64) +pkgdesc="S3 Texture Compression (S3TC) library for Mesa" +url="http://dri.freedesktop.org/wiki/S3TC" +license=(custom:BSD) +depends=(mesa) +options=(!libtool) +source=(http://people.freedesktop.org/~cbrill/$pkgname/$pkgname-$pkgver.tar.bz2) +md5sums=('7105107f07ac49753f4b61ba9d0c79c5') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + + # License + mkdir -p "$pkgdir/usr/share/licenses/$pkgname" + sed -n '5,22{s|^ \* \?||;p}' txc_dxtn.h \ + > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |