aboutsummaryrefslogtreecommitdiffstats
path: root/community/jreen
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 15:00:55 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 15:11:33 +0000
commit71b8d5c3bcff81811532ef9829a41c3da63037a3 (patch)
treed473f96722ffe23d7cd156677b6e7c92fad9c7f9 /community/jreen
parenteb7050f066d744aa877e1a7680a4a31d00f6931e (diff)
downloadaports-71b8d5c3bcff81811532ef9829a41c3da63037a3.tar.bz2
aports-71b8d5c3bcff81811532ef9829a41c3da63037a3.tar.xz
community/jreen: modernize abuild
Diffstat (limited to 'community/jreen')
-rw-r--r--community/jreen/APKBUILD31
1 files changed, 8 insertions, 23 deletions
diff --git a/community/jreen/APKBUILD b/community/jreen/APKBUILD
index 287dc3a91f..d124f23107 100644
--- a/community/jreen/APKBUILD
+++ b/community/jreen/APKBUILD
@@ -10,38 +10,23 @@ license="GPL2"
depends=""
depends_dev="qt-dev speex-dev libgsasl-dev"
makedepends="$depends_dev cmake"
-install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/euroelessar/jreen/archive/v$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() {
- mkdir -p "$_builddir"/build
- cd "$_builddir"/build
- cmake "$_builddir" \
+ mkdir -p "$builddir"/build
+ cd "$builddir"/build
+ cmake "$builddir" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
- || return 1
- make || return 1
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
}
package() {
- cd "$_builddir"/build
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
}
-md5sums="344d1d0b9b76ce64744c6d915ed125fa jreen-1.3.0.tar.gz"
-sha256sums="f93c3d338c011c0945dacb14eb9da3be9541028c9eaa6f2024e688eb8a49b07e jreen-1.3.0.tar.gz"
sha512sums="7b8267aa7d0e18c28dfeb6a1c7c0495d87bd2712fe10a0c6283f0cf89b72d2c67f98f97a812c9f34496af43eb00ddd94b7e60e942634fb03d0119f94a3d08464 jreen-1.3.0.tar.gz"