[arch-commits] Commit in less/trunk (PKGBUILD)
Stéphane Gaudreault
stephane at archlinux.org
Fri Nov 19 14:59:09 UTC 2010
Date: Friday, November 19, 2010 @ 09:59:09
Author: stephane
Revision: 99934
upgpkg: less 436-2
rebuild of old package, use pcre, tidy up PKGBUILD
Modified:
less/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-11-19 14:38:42 UTC (rev 99933)
+++ PKGBUILD 2010-11-19 14:59:09 UTC (rev 99934)
@@ -4,21 +4,27 @@
pkgname=less
pkgver=436
-pkgrel=1
+pkgrel=2
pkgdesc="A terminal based program for viewing text files"
license=('GPL3')
arch=('i686' 'x86_64')
url="http://www.greenwoodsoftware.com/less"
groups=('base')
-depends=('ncurses')
+depends=('ncurses' 'pcre')
source=(http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('817bf051953ad2dea825a1cdf460caa4')
build() {
- cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr
- make || return 1
- make prefix=$pkgdir/usr install
- install -dm755 $pkgdir/bin
- mv $pkgdir/usr/bin/$pkgname $pkgdir/bin/
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --with-regex=pcre
+ make
}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make prefix=${pkgdir}/usr install
+ install -dm755 ${pkgdir}/bin
+ install -m 755 ${pkgdir}/usr/bin/${pkgname} ${pkgdir}/bin
+}
More information about the arch-commits
mailing list