aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-06 00:51:11 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-08-11 13:56:24 +0000
commit3249386fe330c51006e62c37838af2105be0e3d7 (patch)
tree858992468f9068c939c0fd392d2fb7361305b614
parentfb83d3b05f4b993be2a3898f4cfba482f67e82fd (diff)
downloadaports-3249386fe330c51006e62c37838af2105be0e3d7.tar.bz2
testing/jo: upgrade to 1.1 and modernize
-rw-r--r--testing/jo/APKBUILD41
1 files changed, 14 insertions, 27 deletions
diff --git a/testing/jo/APKBUILD b/testing/jo/APKBUILD
index 2dbf165..01b0de4 100644
--- a/testing/jo/APKBUILD
+++ b/testing/jo/APKBUILD
@@ -1,50 +1,37 @@
# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Orion <systmkor@gmail.com>
pkgname=jo
-pkgver=1.0
+pkgver=1.1
pkgrel=0
pkgdesc="JSON output from a shell"
url="https://github.com/jpmens/jo/"
arch="all"
license="GPL2"
-depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
subpackages="$pkgname-doc"
-source="https://github.com/jpmens/jo/releases/download/v$pkgver/jo-$pkgver.tar.gz"
+source="https://github.com/jpmens/$pkgname/releases/download/v$pkgver/$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
-}
+builddir=${srcdir}/${pkgname}-${pkgver}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make check || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="529373bef809ab1281b9e3c01c65f331 jo-1.0.tar.gz"
-sha256sums="d66ec97258d1afad15643fb2d5b5e807153a732ba45c2417adc66669acbde52e jo-1.0.tar.gz"
-sha512sums="bab15de7a01e9a70f43b50d0bb5eff4724bf9d38b0b56a6fff5768756073a5956e3a5a08c7a4e4a2c88107950a4c1721a09b60868b10a441c1a4c6fec7748036 jo-1.0.tar.gz"
+sha512sums="170b86f7eff6cf2a06bf60e98982cc1d4cae11802e6149bf5fca9d4d8910abd1e960619209f3330c140abbac69d76386eafdae627ed4fc5aa1f36c9ee57ffc5a jo-1.1.tar.gz"