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

Felix Yan fyan at archlinux.org
Thu Sep 10 10:34:45 UTC 2015


    Date: Thursday, September 10, 2015 @ 12:34:45
  Author: fyan
Revision: 139787

clean up PKGBUILD

Modified:
  ndiswrapper-dkms/trunk/PKGBUILD	(contents, properties)

----------+
 PKGBUILD |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-10 10:33:50 UTC (rev 139786)
+++ PKGBUILD	2015-09-10 10:34:45 UTC (rev 139787)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: maz-1 <loveayawaka at gmail.com>
 
@@ -23,18 +24,22 @@
          'be8400a7ad805f68146032412b1e763e'
          'd8c1c66ef19e6222e66274c0cdfb481a')
 
-build() {
-	cd "$srcdir/${_pkgname}-${pkgver}"
-	patch -p1 -i ../kernel-3.14.patch
+prepare() {
+    cd "$srcdir/${_pkgname}-${pkgver}"
+    patch -p1 -i ../kernel-3.14.patch
     patch -p1 -i ../kernel-4.0.patch
     patch -p1 -i ../kernel-4.2.patch
-	make -C utils
 }
 
+build() {
+    cd "$srcdir/${_pkgname}-${pkgver}"
+    make -C utils
+}
+
 package() {
-	cd "$srcdir/${_pkgname}-${pkgver}"
-	mkdir -p "${pkgdir}/usr/src"
-	cp -RL ./driver "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
-	cp "$srcdir/dkms.conf" "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
-	make -C utils sbindir=/usr/bin usrsbindir=/usr/bin DESTDIR="${pkgdir}" install
+    cd "$srcdir/${_pkgname}-${pkgver}"
+    mkdir -p "${pkgdir}/usr/src"
+    cp -RL ./driver "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
+    cp "$srcdir/dkms.conf" "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
+    make -C utils sbindir=/usr/bin usrsbindir=/usr/bin DESTDIR="${pkgdir}" install
 }


Property changes on: ndiswrapper-dkms/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list