Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
attica-git patch
--- 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
You can’t perform that action at this time.