updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / opendchub / PKGBUILD
blob0e0fd4b429645f7b9282fc49860c4837ea30220e
1 # Maintainer: Dan Serban
2 # Contributors: Etienne Zannelli, Anton Bazhenov
4 pkgname=opendchub
5 pkgver=0.x.x.latest
6 pkgrel=1
7 pkgdesc="A Unix/Linux version of the hub software for the Direct Connect network"
8 arch=(i686 x86_64)
9 url=http://opendchub.sourceforge.net/
10 license=(GPLv2)
11 depends=(perl)
12 makedepends=(lynx)
14 build()
16   rm opendchub.tar.gz 2>/dev/null || true
17   _url=$(lynx -dump http://sourceforge.net/projects/opendchub/ | grep -o http.*projects.*download)
18   wget -O opendchub.tar.gz "${_url}"
19   bsdtar -xf opendchub.tar.gz
20   cd $(ls -1d opendchub-*/ | tail -1)
21   sh ./configure --prefix=/usr
22   make
23   make DESTDIR="${pkgdir}" install
24   mkdir -p "${pkgdir}"/usr/share/doc/opendchub
25   mv Documentation/* "${pkgdir}"/usr/share/doc/opendchub/