blob: a74161e65bfa0ad5c1245f166fb9a60a2afa1007 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Marco Schulze <aur@ereski.org>
# Contributor: TuxSpirit<tuxpsiritATarchlinuxDOTfr>
# Contributor: Jan Stępień <jstepien@users.sourceforge.net>
pkgname=zpaq
pkgdesc='Programmable file compressor, library and utilities. Based on the PAQ compression algorithm'
url='http://mattmahoney.net/dc/zpaq.html'
pkgver=7.12
pkgrel=1
_zpaq_ver=712
arch=(i686 x86_64)
license=(custom MIT)
makedepends=(perl)
source=(http://mattmahoney.net/dc/zpaq${_zpaq_ver}.zip)
sha512sums=('b6896360caa761e0177402ca973f6111cc1976bc36a5aaf68e85d10c01999fcea851e1d2948fb3e2fe28c44b4944a5200db36db14a93f515279a3f8d3e677350')
build()
{
cd "$srcdir"
if [ -z "$CC" ]
then
CC=gcc
fi
if [ -z "$CXX" ]
then
CXX=g++
fi
msg 'Building libzpaq'
$CXX $CXXFLAGS $LDFLAGS -fPIC -shared -Dunix -DNDEBUG libzpaq.cpp -o libzpaq.so
msg 'Building zpaq'
$CXX ${CXXFLAGS/-flto} ${LDFLAGS/-flto} -pthread -Dunix -DNDEBUG zpaq.cpp -L. -lzpaq -o zpaq
msg 'Building man page'
pod2man zpaq.pod zpaq.1
gzip -9 zpaq.1
}
package()
{
install -Dm 644 libzpaq.h "$pkgdir/usr/include/libzpaq.h"
install -Dm 644 libzpaq.so "$pkgdir/usr/lib/libzpaq.so"
install -Dm 755 zpaq "$pkgdir/usr/bin/zpaq"
install -Dm 644 zpaq.1.gz "$pkgdir/usr/share/man/man1/zpaq.1.gz"
install -Dm 644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|