[arch-commits] CVS update of extra/system/sash (PKGBUILD)

Kevin Piche kevin at archlinux.org
Tue Jan 15 17:56:14 UTC 2008


    Date: Tuesday, January 15, 2008 @ 12:56:14
  Author: kevin
    Path: /home/cvs-extra/extra/system/sash

Modified: PKGBUILD (1.9 -> 1.10)

upgpkg: sash 3.7-3
FS#8969: Added patch so sash compiles with latest kernel-headers, added license, FHS man pages


----------+
 PKGBUILD |   25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)


Index: extra/system/sash/PKGBUILD
diff -u extra/system/sash/PKGBUILD:1.9 extra/system/sash/PKGBUILD:1.10
--- extra/system/sash/PKGBUILD:1.9	Tue May 30 13:31:16 2006
+++ extra/system/sash/PKGBUILD	Tue Jan 15 12:56:13 2008
@@ -1,22 +1,29 @@
-# $Id: PKGBUILD,v 1.9 2006/05/30 17:31:16 ganja_guru Exp $
-# Maintainer: eric <eric at archlinux.org>
+# $Id: PKGBUILD,v 1.10 2008/01/15 17:56:13 kevin Exp $
+# Maintainer: kevin <kevin at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
 pkgname=sash
 pkgver=3.7
-pkgrel=2
+pkgrel=3
 pkgdesc="Stand-alone shell with many commands but does not require glibc"
 arch=(i686 x86_64)
-depends=()
-install=$pkgname.install
-source=(http://www.canb.auug.org.au/~dbell/programs/$pkgname-$pkgver.tar.gz)
+license=('custom')
+install=${pkgname}.install
+source=(http://www.canb.auug.org.au/~dbell/programs/${pkgname}-${pkgver}.tar.gz
+sash-3.7-add_fs_inc.patch)
 url="http://www.canb.auug.org.au/~dbell/"
 md5sums=('ee7c7ed5aad76599974d016a6f201ef4')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
-  /bin/mkdir -p $startdir/pkg/usr/bin $startdir/pkg/usr/man/man1
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  patch -Np0 -i ../sash-3.7-add_fs_inc.patch
   /usr/bin/make || return 1
-  /usr/bin/make BINDIR=$startdir/pkg/usr/bin MANDIR=$startdir/pkg/usr/man/man1 install
+  /bin/mkdir -p ${startdir}/pkg/usr/bin ${startdir}/pkg/usr/share/man/man1
+  /usr/bin/make BINDIR=${startdir}/pkg/usr/bin MANDIR=${startdir}/pkg/usr/share/man/man1 install || return 1
+
+  # Only license mentioned is in the *.c files.
+  install -d ${startdir}/pkg/usr/share/licenses/${pkgname}
+  sed -n '1,\%^ \*/$% p' sash.c \
+      >${startdir}/pkg/usr/share/licenses/${pkgname}/license.txt
 }
 # vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list