[arch-commits] Commit in lsof/trunk (PKGBUILD)
Daniel Griffiths
dgriffiths at archlinux.org
Mon Apr 12 02:28:31 UTC 2010
Date: Sunday, April 11, 2010 @ 22:28:31
Author: dgriffiths
Revision: 77343
Adopted, move to splitpkg format
Modified:
lsof/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-04-12 02:25:24 UTC (rev 77342)
+++ PKGBUILD 2010-04-12 02:28:31 UTC (rev 77343)
@@ -1,6 +1,7 @@
# $Id$
-# Maintainer: Aaron Griffin <aaron at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
# Contributor: Jochem Kossen <j.kossen at home.nl>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
pkgname=lsof
pkgver=4.83
@@ -15,16 +16,21 @@
'1b63c76bd10437cabf890508c8e58d36')
build() {
- cd "$srcdir/${pkgname}_${pkgver}"
- tar xf ${pkgname}_${pkgver}_src.tar
- cd ${pkgname}_${pkgver}_src
- sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" -i dialects/linux/machine.h
+ cd ${srcdir}/${pkgname}_${pkgver}
+ tar xf ${pkgname}_${pkgver}_src.tar
+ cd ${pkgname}_${pkgver}_src
+ sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
- ./Configure -n linux
- make || return 1
- install -D -m0755 -o root -g root lsof "${pkgdir}/usr/sbin/lsof" || return 1
- install -D -m0644 -o root -g root lsof.8 "${pkgdir}/usr/share/man/man8/lsof.8" || return 1
+ ./Configure -n linux
+ make || return 1
+}
+
+package() {
+ cd ${srcdir}/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
+
+ install -Dm0755 -o root -g root lsof ${pkgdir}/usr/sbin/lsof || return 1
+ install -Dm0644 -o root -g root lsof.8 ${pkgdir}/usr/share/man/man8/lsof.8 || return 1
- install -D -m0644 -o root -g root ${srcdir}/license.txt \
- ${pkgdir}/usr/share/licenses/lsof/LICENSE || return 1
+ install -D -m0644 -o root -g root ${srcdir}/license.txt \
+ ${pkgdir}/usr/share/licenses/lsof/LICENSE || return 1
}
More information about the arch-commits
mailing list