summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gläßle2016-05-17 20:54:20 +0200
committerThomas Gläßle2016-05-17 20:54:20 +0200
commitb18f9d9e729f09862d16d4912a4ce7ccbbe87d2b (patch)
treefd64905073607d0dd24bfbe87434ee3e1bd0058f
parent8e61617ecdb81c6b2f0ade4124d192740e3c3fa4 (diff)
downloadaur-b18f9d9e729f09862d16d4912a4ce7ccbbe87d2b.tar.gz
Use absolute pathes
-rw-r--r--PKGBUILD13
1 files changed, 6 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c3a7f8f44c1..989b8e67799 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,10 +25,9 @@ prepare() {
cd ${srcdir}/${sources}
find . -name '._*' -print0 | xargs -0 -r rm
patch -p0 <../setupGNU.cmake.patch
- cd ..
- mkdir -p build
- cd build
+ mkdir -p ${srcdir}/build
+ cd ${srcdir}/build
cmake \
-DCMAKE_C_COMPILER=gcc \
@@ -39,21 +38,21 @@ prepare() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DBINARY_POSTFIX=_dev \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
- ../${sources}
+ ${srcdir}/${sources}
}
build() {
- cd build
+ cd ${srcdir}/build
make
}
check() {
- cd build
+ cd ${srcdir}/build
# ctest -E LONG
}
package() {
- cd build
+ cd ${srcdir}/build
make DESTDIR=${pkgdir} install
cd ${srcdir}/${sources}