aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/qimageblitz/APKBUILD
blob: 208748c9e935d1572943ea8af002af446bd5c4c3 (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
43
44
45
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=qimageblitz
pkgver=0.0.6
pkgrel=0
pkgdesc="qt image processing library"
url="http://www.kde.org"
arch="all"
license="LGPL"
depends=""
depends_dev="qt-dev"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages="$pkgname-dev"
source="ftp://ftp.kde.org/pub/kde/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2"

_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
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DCMAKE_SKIP_RPATH=TRUE \
	      -Wno-dev "$_builddir" || return 1
	make || return 1
}

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

md5sums="0ae2f7d4e0876764a97ca73799f61df4  qimageblitz-0.0.6.tar.bz2"
sha256sums="9f102269dec50641440e23a449df215a0db9efef9a3969939d618c5e78a5010f  qimageblitz-0.0.6.tar.bz2"
sha512sums="dbd506c01622824efdec69640eb95e737d7848fa15d33351084a6499ca2321d7bc08e080d1e443f8ab9015cd2967c10d9b5aa2f3c6eaa7558153821c46133af9  qimageblitz-0.0.6.tar.bz2"