summaryrefslogtreecommitdiff
path: root/community/libtxc_dxtn/PKGBUILD
blob: 375d6aa799335ace1a161f5b3ab23bafea2db653 (plain)
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
# $Id: PKGBUILD 91927 2013-05-29 16:38:35Z lcarlier $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>

pkgname=libtxc_dxtn
pkgver=1.0.1
pkgrel=4
arch=(i686 x86_64 mips64el)
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"
}