summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2019-07-19 16:22:12 +0100
committerEric Engestrom2019-07-19 16:22:12 +0100
commitad2fcce02747e4c0e864093693192de3acb591be (patch)
tree9e2e2e920b993afa899a8cfb700a4e51fd84a476
parenta0b9520f91aab6d82d4188e056e9759f429123a0 (diff)
downloadaur-ad2fcce02747e4c0e864093693192de3acb591be.tar.gz
fold prepare() into build()
This avoids running `configure` again when the package is already built.
-rw-r--r--PKGBUILD6
1 files changed, 1 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2de18d74205..7d23835f3bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,13 +20,9 @@ pkgver() {
} END { exit !found }' cmb.c
}
-prepare() {
- cd pkgcenter/depend/cmb
- ./configure --prefix "$pkgdir/usr"
-}
-
build() {
cd pkgcenter/depend/cmb
+ ./configure --prefix "$pkgdir/usr"
make || msg2 "Try upgrading libcmb and building cmb again afterwards"
}