[arch-commits] Commit in abs/trunk (PKGBUILD)

Stéphane Gaudreault stephane at archlinux.org
Mon Feb 6 14:33:12 EST 2012


    Date: Monday, February 6, 2012 @ 14:33:12
  Author: stephane
Revision: 149320

upgpkg: abs 2.4.3-2

signed rebuild, tidy-up PKGBUILD

Modified:
  abs/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-06 19:14:01 UTC (rev 149319)
+++ PKGBUILD	2012-02-06 19:33:12 UTC (rev 149320)
@@ -3,7 +3,7 @@
 
 pkgname=abs
 pkgver=2.4.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
 arch=('i686' 'x86_64')
 url="http://projects.archlinux.org/abs.git/"
@@ -14,20 +14,25 @@
 md5sums=('b8b46b22d2f9a2aec2c994ccf230b4fd')
 
 build() {
-  cd ${srcdir}/${pkgname}
+  cd "${srcdir}/${pkgname}"
 
   make prefix=/usr sysconfdir=/etc prepare
-  make DESTDIR=${pkgdir} install
+}
 
+package() {
+  cd "${srcdir}/${pkgname}"
+
+  make DESTDIR="${pkgdir}" install
+
   # Add readme file, and make base /var/abs path
-  install -dm0755 ${pkgdir}/var/abs/local/
-  install -Dm0644 ${srcdir}/abs/README ${pkgdir}/var/abs/README
+  install -dm0755 "${pkgdir}"/var/abs/local/
+  install -Dm0644 "${srcdir}"/abs/README "${pkgdir}"/var/abs/README
 
   # make adjustments to abs.conf
   if [[ $CARCH = "i686" ]]; then
-    sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
+    sed -i -e 's| multilib||' -e 's| !multilib-testing||' "${pkgdir}"/etc/abs.conf
   fi
   if [[ $CARCH = "x86_64" ]]; then
-    sed -i '/ARCH=/s|i686|x86_64|' ${pkgdir}/etc/abs.conf
+    sed -i '/ARCH=/s|i686|x86_64|' "${pkgdir}"/etc/abs.conf
   fi
 }



More information about the arch-commits mailing list