PKGBUILDs/core/libfetch/PKGBUILD
2009-09-26 11:30:17 -05:00

38 lines
1 KiB
Bash

# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Contributor: Xavier Chantry <shiningxc@gmail.com>
# Modified by OpenPogo
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/"
source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz
Makefile)
md5sums=('c1c1a8ccabc3bf9acda833bcbc6821b1'
'd6d3fc0352f0bd968c49f000e1cf4af5')
# 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=$(cvs log 2>/dev/null | /opt/bin/grep "^libfetch-.*:$" | head -n1 | sed 's/://')
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
}