PKGBUILDs/core/libfetch/PKGBUILD

39 lines
1 KiB
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Contributor: Xavier Chantry <shiningxc@gmail.com>
2009-09-26 16:30:17 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=libfetch
pkgver=2.23
pkgrel=1
pkgdesc="URL based download library"
arch=(arm)
license=(BSD)
groups=(base)
depends=(openssl)
url="http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/libfetch/"
2009-09-26 16:30:17 +00:00
source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz
Makefile)
md5sums=('c1c1a8ccabc3bf9acda833bcbc6821b1'
'd6d3fc0352f0bd968c49f000e1cf4af5')
2009-09-26 14:35:50 +00:00
# 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"
2009-09-26 16:30:17 +00:00
dirname=$(cvs log 2>/dev/null | /opt/bin/grep "^libfetch-.*:$" | head -n1 | sed 's/://')
2009-09-26 14:35:50 +00:00
cp -r files $dirname
tar -cv --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
}