summaryrefslogtreecommitdiffstats
path: root/testing/attica/APKBUILD
blob: d788eff2d6de3b7afc8dbdaaa53b7a3e06b79b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=attica
pkgver=0.4.1
pkgrel=0
pkgdesc="Freedesktop OCS binding for Qt"
url="http://www.kde.org/"
arch=""
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_SKIP_RPATH=ON "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="b90983ec5d79e5ddcbc9146fa23cab72  attica-0.4.1.tar.bz2"
sha256sums="36d12562c11464e3111df8a36669adcd80c5f3c89ac6b08a708a1bbf8341cde6  attica-0.4.1.tar.bz2"
sha512sums="76d91e66c9661fcd03f61595e9ed4db9fb6972d90e187137ec2ed31e6e329d22a2da08cb23ad10a2385d1da2e60576fd3e743b8fb32c8ab87440f82bef4f99f9  attica-0.4.1.tar.bz2"