summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWorMzy Tykashi2019-02-02 00:11:23 +0000
committerWorMzy Tykashi2019-02-02 00:11:23 +0000
commit82903ce3350e21c2f6bc4a73cdb38ad1905b06cc (patch)
treed743bc7b16b28e5c3b639283a621da55e82b2682 /PKGBUILD
parent2e9980580af26cd8027ba2c525cb61630914c517 (diff)
downloadaur-82903ce3350e21c2f6bc4a73cdb38ad1905b06cc.tar.gz
Fixed cmake build
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 115dda4cdd2..98ea4c33840 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,25 +27,27 @@ sha1sums=('9407ea2ee7b2ed649f17a8ddbf1f7b26a7c7b9fb'
'bc77f03262d0bf423210aaf418d2452324b732ec')
prepare() {
+ mkdir -p ${_basename}-${pkgver}/build
cd ${_basename}-${pkgver}
patch -Np1 -i "${srcdir}/slim-1.3.6-fix-libslim-libraries.patch"
}
build() {
- cd ${_basename}-${pkgver}
+ cd ${_basename}-${pkgver}/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_PAM=yes \
-DUSE_CONSOLEKIT=no \
- -DBUILD_SHARED_LIBS=no
+ -DBUILD_SHARED_LIBS=no \
+ ..
make
}
package() {
- cd ${_basename}-${pkgver}
+ cd ${_basename}-${pkgver}/build
install -Dm755 slimlock "${pkgdir}/usr/bin/slimlock"
- install -Dm644 slimlock.conf "${pkgdir}/etc/slimlock.conf"
- install -Dm644 slimlock.1 "${pkgdir}/usr/share/man/man1/slimlock.1"
+ install -Dm644 ../slimlock.conf "${pkgdir}/etc/slimlock.conf"
+ install -Dm644 ../slimlock.1 "${pkgdir}/usr/share/man/man1/slimlock.1"
install -D -m644 "${srcdir}/slim.conf" "${pkgdir}/usr/share/slimlock/example-slim.conf"