updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / libsquish / PKGBUILD
blob3142cb5a6f301a09e80ddf1278e43d3732cabe81
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Contributor: Your Name <youremail@domain.com>
7 pkgname=libsquish
8 pkgver=1.10
9 pkgrel=2
10 pkgdesc="DXT compression library"
11 arch=('i686' 'x86_64')
12 url="http://code.google.com/p/libsquish"
13 license=('MIT')
14 source=(http://libsquish.googlecode.com/files/squish-$pkgver.tar.gz
15         gcc440.patch
16         config
17         LICENSE)
18 md5sums=('53b171007aaaaf96ee277e833bb756eb'
19          '6c3d8e3651bcfaf36fc48504f97a0ca4'
20          '5d55cb015b694c2a9e19d6aa868e61db'
21          '513ad70d68b1d1ca771814f77d57b310')
23 build() {
24   cd "$srcdir/squish-$pkgver"
25   cp $srcdir/config ./
26   
27   patch -Np0 -i $srcdir/gcc440.patch
28   
29   make || return 1
30   
31   mkdir -p $pkgdir/usr/{include,lib}
32   
33   install -Dm 644 squish.h $pkgdir/usr/include/squish.h
34   install -Dm 644 libsquish.a $pkgdir/usr/lib/libsquish.a
35   
36   install -Dm 644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
39 # vim:set ts=2 sw=2 et: