public
Created

dwb-hg PKGBUILD Cleanup Patch

  • Download Gist
dwb_hg_pkgbuild.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
--- PKGBUILD 2012-02-06 12:48:15.000000000 +0100
+++ PKGBUILD_OK 2012-02-07 12:30:48.804453842 +0100
@@ -17,19 +17,20 @@
build() {
cd "$srcdir"
- if [ -d "${hgrepo}" ]; then
- cd $hgrepo
+ if [ -d "$hgrepo" ]; then
+ cd "$hgrepo"
hg pull -u || test $? -eq 255 && return 1
else
- hg clone "$hgroot/$hgrepo"
+ hg clone "${hgroot}/${hgrepo}"
fi
- rm -rf $srcdir/$_hgrepo-build
- cp -a ${srcdir}/${hgrepo} ${srcdir}/${hgrepo}-build
- cd ${srcdir}/${hgrepo}-build
+ rm -rf "${srcdir}/${hgrepo}-build"
+ cp -a "${srcdir}/${hgrepo}" "${srcdir}/${hgrepo}-build"
+ cd "${srcdir}/${hgrepo}-build"
make
}
+
package() {
- cd ${srcdir}/${hgrepo}-build
- make DESTDIR=${pkgdir} install
+ cd "${srcdir}/${hgrepo}-build"
+ make DESTDIR="${pkgdir}" install
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.