aboutsummaryrefslogblamecommitdiffstats
path: root/main/libtxc_dxtn/APKBUILD
blob: 3eb1eb3f910b48c13185812c84296f3994905047 (plain) (tree)
1
2
3
4
5



                                                         
        



















                                                                                             

                                                         



                       





                                   
            







                                           


                                                                                                                                                                        
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libtxc_dxtn
pkgver=1.0.1
pkgrel=4
pkgdesc="S3TC texture decompression helper library"
url="http://dri.freedesktop.org/wiki/S3TC"
arch="all"
license="BSD"
depends=""
depends_dev="mesa-dev"
makedepends="$depends_dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev"
source="http://cgit.freedesktop.org/~mareko/libtxc_dxtn/snapshot/libtxc_dxtn-$pkgver.tar.bz2"

_builddir="$srcdir"/libtxc_dxtn-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal -I m4 && autoconf \
		&& automake --add-missing
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/libtxc_dxtn.la
}

md5sums="ca22960cd8c788bec486f8ccf6d7b1f2  libtxc_dxtn-1.0.1.tar.bz2"
sha256sums="24af654b64dcfb52efee310cf9ab43a98ef04f4f72a423a282dcb87ebf1e296b  libtxc_dxtn-1.0.1.tar.bz2"
sha512sums="74b4f4211f14926dbfe800e032e3ed16143188c9cd263b5d8912de08ed455510bee579f5d0989ee7e821367b38ebc702c79177f0999146529c6c90fdacb682ab  libtxc_dxtn-1.0.1.tar.bz2"