summaryrefslogtreecommitdiffstats
path: root/abs/core/libtxc_dxtn
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-08-16 18:19:53 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-08-16 18:19:53 (GMT)
commitb89c550af6853616fbc83bd61744b2b2b04c6875 (patch)
tree4fa72fd6011b8ac87123b4016a78a9018fb40df5 /abs/core/libtxc_dxtn
parentb5d3f2084461907ff3cd2df0eee5f0965be7d817 (diff)
downloadlinhes_pkgbuild-b89c550af6853616fbc83bd61744b2b2b04c6875.zip
linhes_pkgbuild-b89c550af6853616fbc83bd61744b2b2b04c6875.tar.gz
linhes_pkgbuild-b89c550af6853616fbc83bd61744b2b2b04c6875.tar.bz2
core/libtxc_dxtn: 1.0.1
Needed for mesa dri drivers
Diffstat (limited to 'abs/core/libtxc_dxtn')
-rw-r--r--abs/core/libtxc_dxtn/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core/libtxc_dxtn/PKGBUILD b/abs/core/libtxc_dxtn/PKGBUILD
new file mode 100644
index 0000000..b408d6f
--- /dev/null
+++ b/abs/core/libtxc_dxtn/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 198250 2013-10-30 13:43:41Z allan $
+# 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)
+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"
+}