kde/spacebar: improve APKBUILD (!979)

Stop manually making the build dir in a custom prepare() function, but
rather use the CMake -B argument to automatically make this directory.

[ci:skip-vercheck]: since this doesn't change the resulting package
compared to our previous APKBUILD a pkgrel bump is not necessary.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Bart Ribbers 2020-02-22 15:00:45 +01:00 committed by Oliver Smith
parent 60693e6a6d
commit 33fcf64f90
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -13,24 +13,16 @@ makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-
source="$pkgname-$_commit.tar.gz::https://github.com/kde/spacebar/archive/$_commit.tar.gz" source="$pkgname-$_commit.tar.gz::https://github.com/kde/spacebar/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit" builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() { build() {
cd "$builddir"/build cmake -B "$builddir"/build \
cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_LIBDIR=lib
make make -C build
} }
package() { package() {
cd "$builddir"/build DESTDIR="$pkgdir" make -C build install
DESTDIR="$pkgdir" make install
} }
sha512sums="99e5ae93a5fa4c597a7e070649f3ea438ce19398a4b9a1acc4d9de7412fb95a1ef9dd23f57425fc37647a283f80f165ee131f473f82a030fd6e7934d4f841451 spacebar-68390bde9309e3656bf1453fae8c13406bf4caeb.tar.gz" sha512sums="99e5ae93a5fa4c597a7e070649f3ea438ce19398a4b9a1acc4d9de7412fb95a1ef9dd23f57425fc37647a283f80f165ee131f473f82a030fd6e7934d4f841451 spacebar-68390bde9309e3656bf1453fae8c13406bf4caeb.tar.gz"