aboutsummaryrefslogtreecommitdiffstats
path: root/testing/extra-cmake-modules/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/extra-cmake-modules/APKBUILD')
-rw-r--r--testing/extra-cmake-modules/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/extra-cmake-modules/APKBUILD b/testing/extra-cmake-modules/APKBUILD
new file mode 100644
index 0000000000..16073341b5
--- /dev/null
+++ b/testing/extra-cmake-modules/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: k0r10n <k0r10n.dev@gmail.com>
+# Contributor: Ivan Tham <pickfire@riseup.net>
+pkgname=extra-cmake-modules
+pkgver=5.31.0
+pkgrel=0
+pkgdesc="Extra CMake modules"
+url="https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
+arch="noarch"
+license="custom"
+depends="cmake"
+makedepends="py-sphinx cmake"
+subpackages="${pkgname}-doc"
+source="http://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
+builddir="$srcdir"/${pkgname}-${pkgver}/build
+
+build() {
+ mkdir -p "$builddir" && cd "$builddir"
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install/fast || return 1
+
+ install -Dm644 ../COPYING-CMAKE-SCRIPTS \
+ "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+sha512sums="3930bdf83b015ddcab4671f75e1e30f3cae7676eb88fa74e0097dd9112d6c56c68891fe69ffa232e61866f9b34ed1db748b5044e7e9c762369ad8940e854f16a extra-cmake-modules-5.31.0.tar.xz"