aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 14:55:35 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 15:06:44 +0000
commit26d38cc3f886d65f19e9a78ba51b6ca03ea06fb4 (patch)
tree7ec69ef19264085a68ae80a6d392d25f8dc4dc42
parent291ea01edfec3cb7a7399ff02777128f873d1bab (diff)
downloadaports-26d38cc3f886d65f19e9a78ba51b6ca03ea06fb4.tar.gz
aports-26d38cc3f886d65f19e9a78ba51b6ca03ea06fb4.tar.bz2
aports-26d38cc3f886d65f19e9a78ba51b6ca03ea06fb4.tar.xz
community/attica: modernize abuild
-rw-r--r--community/attica/APKBUILD25
1 files changed, 8 insertions, 17 deletions
diff --git a/community/attica/APKBUILD b/community/attica/APKBUILD
index 4dffa4a1cd..3396a7a821 100644
--- a/community/attica/APKBUILD
+++ b/community/attica/APKBUILD
@@ -10,37 +10,28 @@ license="LGPL2+"
depends=""
depends_dev="qt-dev"
makedepends="$depends_dev cmake automoc4"
-install=""
subpackages="$pkgname-dev"
source="http://download.kde.org/stable/attica/attica-$pkgver.tar.bz2"
-_builddir="$srcdir"/attica-$pkgver
+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
- mkdir -p "$_builddir"/build
+ default_prepare
+ mkdir -p "$builddir"/build
}
build() {
- cd "$_builddir"/build
+ cd "$builddir"/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DQT4_BUILD=ON \
-Wno-dev \
- "$_builddir" || return 1
- make || return 1
+ "$builddir"
+ make
}
package() {
- cd "$_builddir"/build
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
}
-md5sums="d62c5c9489a68432e8d990dde7680c24 attica-0.4.2.tar.bz2"
-sha256sums="3b9c53770862c0b21b7af7ea15951c35831126022bb8d052760d9cf8bd7ee4f8 attica-0.4.2.tar.bz2"
sha512sums="cef5d5c4bf01ed45ed8b59db354a4ac7949de435a45e4f753c847cadc15855e25997dedf1ff20c7bc4a2724d2cdba15139c54f0682df7d8cc8750de5be6f716e attica-0.4.2.tar.bz2"