Created
July 2, 2015 18:08
-
-
Save davispuh/4168810f094e01be84e1 to your computer and use it in GitHub Desktop.
attica-git patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -13,21 +13,21 @@ source=('attica::git+git://anongit.kde.org/attica') | |
md5sums=('SKIP') | |
pkgver() { | |
- cd ${srcdir}/attica | |
+ cd "${srcdir}/attica" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
-if [[ -d ${srcdir}/build ]]; then | |
+if [[ -d "${srcdir}/build" ]]; then | |
msg "Cleaning the previous build directory..." | |
- rm -rf ${srcdir}/build | |
+ rm -rf "${srcdir}/build" | |
fi | |
- mkdir ${srcdir}/build | |
+ mkdir "${srcdir}/build" | |
} | |
build() { | |
- cd ${srcdir}/build | |
- cmake ${srcdir}/attica -DCMAKE_BUILD_TYPE=Release \ | |
+ cd "${srcdir}/build" | |
+ cmake "${srcdir}/attica" -DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DLIB_INSTALL_DIR=lib \ | |
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
@@ -36,8 +36,8 @@ build() { | |
} | |
package() { | |
- cd ${srcdir}/build | |
- make DESTDIR=${pkgdir} install | |
+ cd "${srcdir}/build" | |
+ make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment