summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephan Springer2019-02-12 13:02:23 +0100
committerStephan Springer2019-02-12 13:02:23 +0100
commitb2b11415e094785e8863f199a2a3ea700b6aad1c (patch)
treecfa11022b1d87c9ae6cd375bdc4484332a4b8b60 /PKGBUILD
parent50a96a18321bc487f039ffca13cd073a06167568 (diff)
downloadaur-gcdemu.tar.gz
separate build directory from sources
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 856a2fcca65..16c2537e77c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,12 +18,13 @@ source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2")
sha512sums=('61a1775c874c9c3604ce88758039ef80b262463ae180e791eb545811fa2176e4bf07c4dbcd3be5f17d446fdef92317a0ff64ce8d27f26aeaeee9d8134b6a95ea')
build() {
- cd "$srcdir/$pkgname-$pkgver"
- cmake -DPOST_INSTALL_HOOKS=off -DCMAKE_INSTALL_PREFIX=/usr
- make
+ mkdir "$srcdir/build"
+ cd "$srcdir/build"
+ cmake -DPOST_INSTALL_HOOKS=off -DCMAKE_INSTALL_PREFIX=/usr ../"$pkgname-$pkgver"
+ make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
+ cd "$srcdir/build"
+ make DESTDIR="$pkgdir" install
}