summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libfetch/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-02-04 00:24:28 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-02-04 00:24:28 (GMT)
commit9cd63c26a0ff20a3b3895578659629930fe320ea (patch)
tree7d08ff25940ca574f10a4655626937b913bf56db /abs/core-testing/libfetch/PKGBUILD
parent3a6e5f1b5d5567fbcd807d3362c186d150bac7e4 (diff)
downloadlinhes_pkgbuild-9cd63c26a0ff20a3b3895578659629930fe320ea.zip
linhes_pkgbuild-9cd63c26a0ff20a3b3895578659629930fe320ea.tar.gz
linhes_pkgbuild-9cd63c26a0ff20a3b3895578659629930fe320ea.tar.bz2
libfetch: add to repo for pacman
Diffstat (limited to 'abs/core-testing/libfetch/PKGBUILD')
-rw-r--r--abs/core-testing/libfetch/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core-testing/libfetch/PKGBUILD b/abs/core-testing/libfetch/PKGBUILD
new file mode 100644
index 0000000..8cdbd2c
--- /dev/null
+++ b/abs/core-testing/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')