2017-11-26 17:08:10 +00:00
|
|
|
# Contributor: k0r10n <k0r10n.dev@gmail.com>
|
|
|
|
# Contributor: Ivan Tham <pickfire@riseup.net>
|
2017-08-03 20:14:04 +00:00
|
|
|
pkgname=extra-cmake-modules
|
2018-06-11 21:52:16 +00:00
|
|
|
pkgver=5.47.0
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgrel=0
|
2017-08-03 20:14:04 +00:00
|
|
|
pkgdesc="Extra CMake modules"
|
|
|
|
url="https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
|
|
|
|
arch="noarch"
|
|
|
|
license="custom"
|
|
|
|
depends="cmake"
|
2017-11-26 17:08:10 +00:00
|
|
|
makedepends="py-sphinx cmake"
|
2017-08-03 20:14:04 +00:00
|
|
|
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"
|
2017-11-26 17:08:10 +00:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF || return 1
|
|
|
|
make || return 1
|
2017-08-03 20:14:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"
|
2017-11-26 17:08:10 +00:00
|
|
|
make DESTDIR="$pkgdir" install/fast || return 1
|
2017-08-03 20:14:04 +00:00
|
|
|
|
|
|
|
install -Dm644 ../COPYING-CMAKE-SCRIPTS \
|
|
|
|
"$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
|
|
|
}
|
|
|
|
|
2018-06-11 21:52:16 +00:00
|
|
|
sha512sums="a5410e64b1d5ea417afc4f2f904a51e04428892ff80246a025a0b8fe7044c4ca09ae8f1c99a1407d8b1177d322ec94a0a4240e92775b5958bdd29d9403ba43f4 extra-cmake-modules-5.47.0.tar.xz"
|