aboutsummaryrefslogtreecommitdiffstats
path: root/main/attica/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-03 21:15:05 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-03 21:15:05 +0200
commit1b4921b2dfe24040998ba300fc2d488ef82497bc (patch)
tree17521264815304092f5ae7d88eda93f2fb812c45 /main/attica/APKBUILD
parentdc9803885b5492e14a7bd724e84051902150a937 (diff)
downloadaports-1b4921b2dfe24040998ba300fc2d488ef82497bc.tar.bz2
aports-1b4921b2dfe24040998ba300fc2d488ef82497bc.tar.xz
testing/attica: move to main
Diffstat (limited to 'main/attica/APKBUILD')
-rw-r--r--main/attica/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/attica/APKBUILD b/main/attica/APKBUILD
new file mode 100644
index 0000000000..4b7c2e7cdb
--- /dev/null
+++ b/main/attica/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=attica
+pkgver=0.4.2
+pkgrel=0
+pkgdesc="Freedesktop OCS binding for Qt"
+url="http://www.kde.org/"
+arch="all"
+license="LGPL2+"
+depends=""
+depends_dev="qt-dev"
+makedepends="$depends_dev cmake automoc4"
+install=""
+subpackages="$pkgname-dev"
+source="ftp://ftp.kde.org/pub/kde/stable/attica/attica-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/attica-$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
+}
+
+build() {
+ cd "$_builddir"/build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DQT4_BUILD=ON \
+ -Wno-dev \
+ "$_builddir" || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"/build
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="d62c5c9489a68432e8d990dde7680c24 attica-0.4.2.tar.bz2"
+sha256sums="3b9c53770862c0b21b7af7ea15951c35831126022bb8d052760d9cf8bd7ee4f8 attica-0.4.2.tar.bz2"
+sha512sums="cef5d5c4bf01ed45ed8b59db354a4ac7949de435a45e4f753c847cadc15855e25997dedf1ff20c7bc4a2724d2cdba15139c54f0682df7d8cc8750de5be6f716e attica-0.4.2.tar.bz2"