diff options
author | James Meyer <james.meyer@operamail.com> | 2010-08-30 22:24:02 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-08-30 22:24:02 (GMT) |
commit | c4bd4457b5d640e1c8f5afbca7cd54c53691e5fc (patch) | |
tree | f4e4f7a91e1d9d90033fd99d89e5e26a2c144528 /abs/core/libfetch/PKGBUILD | |
parent | 0e7b327a1ae444233f1308a95420f70540ad74a3 (diff) | |
download | linhes_pkgbuild-c4bd4457b5d640e1c8f5afbca7cd54c53691e5fc.zip linhes_pkgbuild-c4bd4457b5d640e1c8f5afbca7cd54c53691e5fc.tar.gz linhes_pkgbuild-c4bd4457b5d640e1c8f5afbca7cd54c53691e5fc.tar.bz2 |
RSYNC CORE:
resync core-testing -> core
Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'abs/core/libfetch/PKGBUILD')
-rw-r--r-- | abs/core/libfetch/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/libfetch/PKGBUILD b/abs/core/libfetch/PKGBUILD new file mode 100644 index 0000000..8cdbd2c --- /dev/null +++ b/abs/core/libfetch/PKGBUILD @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Aaron Griffin <aaron@archlinux.org> +# Contributor: Xavier Chantry <shiningxc@gmail.com> + +pkgname=libfetch +pkgver=2.26 +pkgrel=1 +pkgdesc="URL based download library" +arch=('i686' 'x86_64') +license=('BSD') +groups=('base') +depends=('openssl') +url="http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/libfetch/" +source=(Makefile + ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz) + +# source PKGBUILD && mksource +mksource() { + export CVSROOT=:pserver:anoncvs@anoncvs.NetBSD.org:/cvsroot + D=pkgsrc/net/libfetch + [ -d "$D" ] && cvs up "$D" || cvs co "$D" + pushd "$D" + dirname=$(sed -n 's/DISTNAME=.*\(libfetch-.*$\)/\1/p' Makefile) + cp -r files $dirname + tar -czv --exclude=CVS -f ../../../$dirname.tar.gz $dirname + rm -r $dirname + popd +} + +build() { + cd $srcdir/${pkgname}-${pkgver} + cp ../Makefile . + make || return 1 + make DESTDIR=$pkgdir install +} + +md5sums=('cea609a8d6fd97761e364f7203e6d609' + '2dc53c0b5480d3dd5157482379820806') |