PKGBUILD 1.03 KB
Newer Older
Jan Mette's avatar
Jan Mette committed
1 2 3 4 5 6
# $Id$
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Contributor: Xavier Chantry <shiningxc@gmail.com>

pkgname=libfetch
pkgver=2.30
Jan Mette's avatar
Jan Mette committed
7
pkgrel=2
Jan Mette's avatar
Jan Mette committed
8 9 10 11 12 13 14 15 16 17
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)

# keep an upgrade path for older installations
Jan Mette's avatar
Jan Mette committed
18
# PKGEXT='.pkg.tar.gz'
Jan Mette's avatar
Jan Mette committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

# 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'
         'ffa85bc269144d5e86ca6f81c5dc5ca5')