blob: b7d4fbb13f20a65efdf79cf14c3d3a312775dfc1 (
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
54
55
56
57
58
59
60
61
|
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=fastjar
pkgver=0.98
pkgrel=2
pkgdesc="A fast implementation of Java Archiver"
url="http://savannah.nongnu.org/projects/fastjar"
arch="all"
license="GPL2"
depends=
makedepends="zlib-dev"
install=""
subpackages="$pkgname-doc"
source="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
0001-Properly-zero-terminate-filename.patch
0002-Fix-write-return-value-check.patch
"
_builddir=$srcdir/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -rf "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
return 0
}
md5sums="d2d264d343d4d0e1575832cc1023c3bf fastjar-0.98.tar.gz
1bc25be94be0704601ccdabdea055cb0 0001-Properly-zero-terminate-filename.patch
d7e249b113f335a24660f317cbb69e34 0002-Fix-write-return-value-check.patch"
sha256sums="f156abc5de8658f22ee8f08d7a72c88f9409ebd8c7933e9466b0842afeb2f145 fastjar-0.98.tar.gz
93aa186b95f686e8bc383fea7e875aa2f71aeeda9fb4d74720c926c40b31658d 0001-Properly-zero-terminate-filename.patch
9bbd0b5e3e2d41a87c454a29b3386e6e7aa7e56117f58e9a467fb9aff23b3aec 0002-Fix-write-return-value-check.patch"
sha512sums="c0f9fca7b58d6acd00b90a5184dbde9ba3ffc5bf4d69512743e450649a272baf1f6af98b15d79d2b53990eaf84ef402c986035e6b615a19e35ed424348143903 fastjar-0.98.tar.gz
0aa74753c008e20f009dc5f84fc9219668c1365b2c53012e32ed1b8cc216c4833d8d1af80af8eb9e138b0c7f4fcda207448ff57941184dbfe71f7d4cd08392ea 0001-Properly-zero-terminate-filename.patch
f4ae60d70f2c547bebd6c3fc1baaa0e959de54c36a667b2c0d9526e87e5604fbef29b4ab20a4140306157b98528a16744a8b7dfb14ff4781fb2fe196b00665d8 0002-Fix-write-return-value-check.patch"
|