aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtxc_dxtn/APKBUILD
blob: 36affdc4ebf69d8bead64b17bc2b3e070472e206 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libtxc_dxtn
pkgver=1.0.1
pkgrel=5
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="https://people.freedesktop.org/~cbrill/$pkgname/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir"/libtxc_dxtn-$pkgver
prepare() {
	default_prepare
	libtoolize --force && aclocal -I m4 && autoreconf -fvi \
		&& 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
}

sha512sums="56714a8c947d9b1f47e3ccb23cff9e4e57bd131907a82968de521d094a000275b3aaeecff28e9184bcc4f3932baa1a8bfbbefbc970fcd034ff953d0617148479  libtxc_dxtn-1.0.1.tar.bz2"