[arch-commits] Commit in libfetch/trunk (PKGBUILD)
Dan McGee
dan at archlinux.org
Sun Jun 20 16:48:14 UTC 2010
Date: Sunday, June 20, 2010 @ 12:48:14
Author: dan
Revision: 83008
upgpkg: libfetch 2.32-1
verbump 2.32, add license file, add package()
Modified:
libfetch/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-06-20 15:44:10 UTC (rev 83007)
+++ PKGBUILD 2010-06-20 16:48:14 UTC (rev 83008)
@@ -3,7 +3,7 @@
# Contributor: Xavier Chantry <shiningxc at gmail.com>
pkgname=libfetch
-pkgver=2.31
+pkgver=2.32
pkgrel=1
pkgdesc="URL based download library"
arch=('i686' 'x86_64')
@@ -13,7 +13,7 @@
source=(Makefile
ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('bb6c1fb99633ff3bea83cab0c3fdb394'
- '4c1bd75daeaf014cd79da097a2d794b1')
+ '8959b76cfda4d5cc4fa463e05cddeb25')
# keep an upgrade path for older installations
PKGEXT='.pkg.tar.gz'
@@ -32,8 +32,15 @@
}
build() {
- cd $srcdir/${pkgname}-${pkgver}
+ cd $srcdir/$pkgname-$pkgver
cp $srcdir/Makefile .
make || return 1
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
+ licdir=$pkgdir/usr/share/licenses/libfetch/
+ mkdir -p $licdir
+ sed -n -e '/Copyright (c)/,/SUCH DAMAGE\./p' common.c | cut -c '4-' > $licdir/LICENSE
}
More information about the arch-commits
mailing list