mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
37 lines
1 KiB
Bash
37 lines
1 KiB
Bash
|
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
|
||
|
# Maintainer: Aaron Griffin <aaron@archlinux.org>
|
||
|
# Contributor: Xavier Chantry <shiningxc@gmail.com>
|
||
|
|
||
|
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=(Makefile ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz)
|
||
|
md5sums=('69ce72c61962ad070b2a78f67dd2ddaf'
|
||
|
'c1c1a8ccabc3bf9acda833bcbc6821b1')
|
||
|
|
||
|
# 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 | /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
|
||
|
}
|