diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-11-19 16:14:37 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-29 22:23:31 +0100 |
commit | 315c00b89fbc706fde9ca1cb9b8966ba7124c0cf (patch) | |
tree | c44b742b73ae2e88a2f83ee97386e8600685e2bc | |
parent | a76060c390e09d44c54e0bb1bc60a0e4e6f91af1 (diff) | |
download | alpine_aports-315c00b89fbc706fde9ca1cb9b8966ba7124c0cf.tar.bz2 alpine_aports-315c00b89fbc706fde9ca1cb9b8966ba7124c0cf.tar.xz alpine_aports-315c00b89fbc706fde9ca1cb9b8966ba7124c0cf.zip |
main/liblockfile: upgrade to 1.14 and modernize abuild
-rw-r--r-- | main/liblockfile/APKBUILD | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/main/liblockfile/APKBUILD b/main/liblockfile/APKBUILD index 6e1be9e9ee..d5ab481357 100644 --- a/main/liblockfile/APKBUILD +++ b/main/liblockfile/APKBUILD | |||
@@ -1,44 +1,30 @@ | |||
1 | # Contributor: Duane Hughes <duanejevon@gmail.com> | 1 | # Contributor: Duane Hughes <duanejevon@gmail.com> |
2 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 2 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
3 | pkgname=liblockfile | 3 | pkgname=liblockfile |
4 | pkgver=1.09 | 4 | pkgver=1.14 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | pkgdesc="Shared library with NFS-safe locking functions" | 6 | pkgdesc="Shared library with NFS-safe locking functions" |
7 | url="http://packages.debian.org/sid/liblockfile1" | 7 | url="http://packages.debian.org/sid/liblockfile1" |
8 | arch="all" | 8 | arch="all" |
9 | license="GPL" | 9 | license="GPL" |
10 | depends="" | 10 | options="!check" # upstream does not provide tests |
11 | makedepends= | ||
12 | install= | ||
13 | subpackages="$pkgname-dev $pkgname-doc" | 11 | subpackages="$pkgname-dev $pkgname-doc" |
14 | source="http://ftp.debian.org/debian/pool/main/libl/liblockfile/${pkgname}_$pkgver.orig.tar.gz" | 12 | source="http://ftp.debian.org/debian/pool/main/libl/liblockfile/${pkgname}_$pkgver.orig.tar.gz" |
15 | 13 | builddir="$srcdir/$pkgname" | |
16 | _builddir="$srcdir"/$pkgname-$pkgver | ||
17 | |||
18 | 14 | ||
19 | build() { | 15 | build() { |
20 | cd "$_builddir" | 16 | cd "$builddir" |
21 | ./configure \ | 17 | ./configure \ |
22 | --build=$CBUILD \ | 18 | --build=$CBUILD \ |
23 | --host=$CHOST \ | 19 | --host=$CHOST \ |
24 | --prefix=/usr \ | 20 | --prefix=/usr \ |
25 | --sysconfdir=/etc \ | 21 | --sysconfdir=/etc |
26 | --mandir=/usr/share/man \ | 22 | make -j1 |
27 | || return 1 | ||
28 | make -j1 || return 1 | ||
29 | } | 23 | } |
30 | 24 | ||
31 | package() { | 25 | package() { |
32 | cd "$_builddir" | 26 | cd "$builddir" |
33 | 27 | make -j1 DESTDIR="$pkgdir" install | |
34 | install -d "$pkgdir"/usr/include | ||
35 | install -d "$pkgdir"/usr/bin | ||
36 | install -d "$pkgdir"/usr/lib | ||
37 | install -d "$pkgdir"/usr/share/man | ||
38 | |||
39 | make -j1 ROOT="$pkgdir" install | ||
40 | } | 28 | } |
41 | 29 | ||
42 | md5sums="2aa269e4405ee8235ff17d1b357c6ae8 liblockfile_1.09.orig.tar.gz" | 30 | sha512sums="d6d75a1ddb55bae8ee63bd0cbacf7ab8cd6d28b29a7d3c2e4a5c31c76c6743ed517cdebd42e3ef5c44698faebfd1537b023510c692b54a1275e7114605fe6550 liblockfile_1.14.orig.tar.gz" |
43 | sha256sums="16979eba05396365e1d6af7100431ae9d32f9bc063930d1de66298a0695f1b7f liblockfile_1.09.orig.tar.gz" | ||
44 | sha512sums="8577f8bfa9c78983d6a409bc449be0d981e599a6a5f2fc8b43f76a238810ec5e3c180e27280719398f31041ed837fe8ba61df208ce77db77a354453e4579848a liblockfile_1.09.orig.tar.gz" | ||