summaryrefslogtreecommitdiffstats
path: root/testing/extra-cmake-modules/APKBUILD
blob: 0fe909597ecba26cdfd0cbb853f3a92de126621a (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: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=extra-cmake-modules
pkgver=1.1.0
pkgrel=0
pkgdesc="Extra CMake modules"
url="https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
arch="noarch"
license="LGPL"
depends=
depends_dev="py-sphinx"
makedepends="$depends_dev cmake"
install=""
subpackages="${pkgname}-doc"
source="ftp://ftp.kde.org/pub/kde/stable/frameworks/5.1.0/${pkgname}-${pkgver}.tar.xz"

_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 "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr "$_builddir" || return 1
	make || return 1
}

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

md5sums="005e28bb881718e3c381f8731fb70ea7  extra-cmake-modules-1.1.0.tar.xz"
sha256sums="0b460126dfc5faabb64fe4f0f9ec0d247fe75cf66c2a8a5f0d66d4a45f73e303  extra-cmake-modules-1.1.0.tar.xz"
sha512sums="76947a9ea76611e5f3593b5e60d0f2e102459d6fa85c8e7e21371bcc6d513372dfccd01c9eb021d75f9782942612d27c7ebc97c978838329c1505e2792794353  extra-cmake-modules-1.1.0.tar.xz"