Move build preparation to build() according to https://bugs.archlinux.org/task/72532

This commit is contained in:
ArchieMeng 2021-10-25 14:40:17 +08:00
parent 5b05a2b798
commit 1dd65b0d7d
2 changed files with 4 additions and 9 deletions

View file

@ -1,6 +1,6 @@
pkgbase = plasma-bigscreen-git
pkgdesc = A big launcher giving you easy access to any installed apps and skills.
pkgver = r340.749c303
pkgver = r411.7344fe3
pkgrel = 1
url = https://plasma-bigscreen.org/
arch = any
@ -31,4 +31,3 @@ pkgbase = plasma-bigscreen-git
md5sums = SKIP
pkgname = plasma-bigscreen-git

View file

@ -1,6 +1,6 @@
# Maintainer: Archie Meng <archiemeng@protonmail.com>
pkgname=plasma-bigscreen-git
pkgver=r340.749c303
pkgver=r411.7344fe3
pkgrel=1
pkgdesc="A big launcher giving you easy access to any installed apps and skills."
arch=('any')
@ -41,17 +41,13 @@ pkgver() {
printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
build() {
cd "$srcdir/plasma-bigscreen"
cmake -B build \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_BUILD_TYPE=Release
}
build() {
cd "$srcdir/plasma-bigscreen/build"
cd build
make
}