blob: 0f19fde047e9a15f713c0131a76f26a6cd4dde53 (
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
|
# Contributor: John Regan <john@jrjrtech.com>
# Maintainer: John Regan <john@jrjrtech.com>
pkgname=skalibs
pkgver=2.3.7.1
pkgrel=0
pkgdesc="A set of general-purpose C programming libraries for skarnet.org software."
url="http://skarnet.org/software/skalibs/"
arch="all"
license="ISC"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
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 \
--enable-shared \
--enable-static \
--prefix=/usr \
--libdir=/usr/lib \
--datadir=/etc \
--enable-force-devr \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
dev() {
default_dev
cd "$subpkgdir"
mv "$pkgdir/usr/lib/skalibs/sysdeps/"* usr/lib/skalibs/sysdeps/
rm -rf "$pkgdir/usr/lib/skalibs"
}
md5sums="7a7825f41b74aa9c5178cba8c9742ac7 skalibs-2.3.7.1.tar.gz"
sha256sums="e520a6c9b51f2c83add28305d008e4e2085256518ac70ab6a2d775b1ad01fa1f skalibs-2.3.7.1.tar.gz"
sha512sums="1840fdcaaa20bcb94338fa11e771baf81afb795ab2d94cb2e53e849a8711d12fcfdd2f4a11f6f5aab4f15dec19b1cd69ca61ed377503f50c902229fa084c9e48 skalibs-2.3.7.1.tar.gz"
|