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

Tobias Powalowski tpowa at archlinux.org
Sun Oct 5 14:16:24 EDT 2008


    Date: Sunday, October 5, 2008 @ 14:16:23
  Author: tpowa
Revision: 14314

upgpkg: dmraid 1.0.0.rc15-2

Modified:
  dmraid/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-10-05 17:25:52 UTC (rev 14313)
+++ PKGBUILD	2008-10-05 18:16:23 UTC (rev 14314)
@@ -4,7 +4,7 @@
 
 pkgname=dmraid
 pkgver=1.0.0.rc15
-pkgrel=1
+pkgrel=2
 pkgdesc="Device mapper RAID interface"
 url="http://people.redhat.com/~heinzm/sw/dmraid/"
 depends=(device-mapper)
@@ -18,21 +18,23 @@
 	 '8c944cab8c885192a90e518a8d794adf')
 
 build() {
-  cd $startdir/src/$pkgname/$pkgver
+  cd $srcdir/$pkgname/$pkgver
 
   # create static bin
   ./configure --enable-static_link --prefix=/usr
   make || return 1
-  make DESTDIR=$startdir/pkg exec_prefix=$startdir/pkg/usr install
-  mv $startdir/pkg/usr/sbin/dmraid $startdir/pkg/usr/sbin/dmraid.static
+  make DESTDIR=$startdir/pkg exec_prefix=$pkgdir/usr install
+  mv $pkgdir/usr/sbin/dmraid $pkgdir/usr/sbin/dmraid.static
 
   # create dynamic linked bin
   ./configure --prefix=/usr
   make || return 1
-  make DESTDIR=$startdir/pkg exec_prefix=$startdir/pkg/usr install
-  mkdir -p $startdir/pkg/var/lock/dmraid
-  chmod 1777 $startdir/pkg/var/lock/
+  make DESTDIR=$pkgdir exec_prefix=$pkgdir/usr install
+  mkdir -p $pkgdir/var/lock/dmraid
+  chmod 1777 $pkgdir/var/lock/
 
-  install -D -m755 $startdir/src/dmraid_install $startdir/pkg/lib/initcpio/install/dmraid
-  install -D -m755 $startdir/src/dmraid_hook $startdir/pkg/lib/initcpio/hooks/dmraid
+  install -D -m755 $srcdir/dmraid_install $pkgdir/lib/initcpio/install/dmraid
+  install -D -m755 $srcdir/dmraid_hook $pkgdir/lib/initcpio/hooks/dmraid
+  # fix .a file
+  chmod 644 $pkgdir/usr/lib/libdmraid.a
 }




More information about the arch-commits mailing list