upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / liblzf / trunk / PKGBUILD
blob2d4a6db4e4a4af9317b506f23c111f93bed508c3
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=liblzf
4 pkgver=3.6
5 pkgrel=4
6 pkgdesc="A very small data compression library"
7 arch=(x86_64)
8 url="http://software.schmorp.de/pkg/liblzf.html"
9 license=(BSD)
10 depends=(glibc)
11 makedepends=(signify)
12 provides=(liblzf.so)
13 source=(
14   http://dist.schmorp.de/$pkgname/$pkgname-$pkgver.tar.gz
15   $pkgname-$pkgver.tar.gz.signature::http://dist.schmorp.de/$pkgname/$pkgname-$pkgver.tar.gz.sig
16   http://dist.schmorp.de/signing-key.pub
17   liblzf-3.6-autoconf-20140314.patch
19 sha512sums=('701f70245a11e7cf3412b14ed26bf7b1464512d5b0cf3f913e70ebfdfe20574b8ebbae5a78f4b56ac0034d54830380309cac3057ca00a8028edbde3d091141f5'
20             '8558e81f619010a974e45d295df5ca8ae3a039932d062e8f9b78250fa842623075ca4529287a88e543bf1806022fdab56d69546f5f57de92bd24de0782226617'
21             'a09a434387e22612a9225ddfa444044977712c6410efe8a77a33d8aa607bd1acbef2a1da08b62e21a4b070f0974ba94ae907ac0452b5d060e33a1c051a7780e4'
22             'b68bfd8b5ff56a1e0cd2ed1a1827bc14cde5d65f8d8654a2354d3dd9c6527532d801f675998ba8d2a72babbf6e6bcced1c3a25d5aa1be452c09bd3621a2f20d3')
23 b2sums=('b84494706c97861f1cbf9e70129ee25df05e873225bd8a971d6e874822c84532528d04186847cced0a8c13322d1bab7578e48552bd2fa196ca8f9b5d0576b692'
24         '1816d200b96eb4d2c5fb4c3bed6fd309c7a7d1c2bc857365cd80ecad77e86c11e7a73ffc9458cbb0c7100fea82282d77d091346709270ccc676b82b24cece163'
25         '6d6bd90b77e67ccb876f0c78c710c9e1b82767a19aeadaac9310e5628b791586fc8475ad5179eaa2fee386ae80aae916226167ec92c5af309bba4052238326c8'
26         '1ff8cd4554bafb3b5273206b6ab8c9de4a4af81d82fef1d3aeccc0bc47bfc5e2ef97f8f7c4d3734f2be3734dc8f8bcfbf3e9a4f924046f89ee425f95f86f745a')
28 prepare() {
29   # hacking around to validate with signify
30   mv -v $pkgname-$pkgver.tar.gz.{signature,sig}
31   signify -V -p signing-key.pub -m $pkgname-$pkgver.tar.gz
32   # taking autoconf patch from Fedora (which upstream never included, because..)
33   # https://src.fedoraproject.org/rpms/liblzf/blob/master/f/liblzf-3.6-autoconf-20140314.patch
34   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-3.6-autoconf-20140314.patch
36   cd $pkgname-$pkgver
37   sh ./bootstrap.sh
40 build() {
41   cd $pkgname-$pkgver
42   ./configure --prefix=/usr --disable-static
43   make
46 package() {
47   make DESTDIR="$pkgdir/" install -C $pkgname-$pkgver
48   # the binary does different things, being called by a different name
49   ln -sv lzf "$pkgdir/usr/bin/unlzf"
50   install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
51   install -vDm 644 $pkgname-$pkgver/{Changes,README} -t "$pkgdir/usr/share/doc/$pkgname/"