diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-08-31 16:09:01 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-09-01 20:25:39 +0000 |
commit | 080bd5805f0bb574217de9b4e3731e223df20d64 (patch) | |
tree | 163b53e8323f08d2a623d1e784aa8a20fdff25b9 /main/lzip | |
parent | 6305c03b249afa7e1f78da155c95484aedb34176 (diff) | |
download | aports-080bd5805f0bb574217de9b4e3731e223df20d64.tar.bz2 aports-080bd5805f0bb574217de9b4e3731e223df20d64.tar.xz |
main/lzip: modernize APKBUILD and add check
Diffstat (limited to 'main/lzip')
-rw-r--r-- | main/lzip/APKBUILD | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/main/lzip/APKBUILD b/main/lzip/APKBUILD index 97345d7329..9689d0e3ab 100644 --- a/main/lzip/APKBUILD +++ b/main/lzip/APKBUILD @@ -2,28 +2,30 @@ # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> pkgname=lzip pkgver=1.19 -pkgrel=0 +pkgrel=1 pkgdesc="Lzip is a lossless data compressor" url="http://www.nongnu.org/lzip/lzip.html" arch="all" license="GPL2+" -depends="" -depends_dev="" -makedepends="" -install="" -subpackages="${pkgname}-doc" -source="http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz" +subpackages="$pkgname-doc" +source="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz" + +builddir="$srcdir/$pkgname-$pkgver" -builddir=${srcdir}/${pkgname}-${pkgver} build() { - cd "${builddir}" + cd "$builddir" ./configure --prefix=/usr - make || return 1 + make +} + +check() { + cd "$builddir" + make check } package() { - cd "${builddir}" - make DESTDIR=${pkgdir} install || return 1 + cd "$builddir" + make DESTDIR=$pkgdir install } sha512sums="513525c2731334fae99f7a17b1211e7a018446dc211e6ba52a95054e771c9577333a131608cb06a5279da16a4e4877076402b97e97ff6a145c3626fde22d3392 lzip-1.19.tar.gz" |