updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / upslug2 / PKGBUILD
blob4da9af030d5690b5eb8f10d9c7f2ee7704ae3b10
1 # Contributor: Michael Klier <chi@chimeric.de>
2 # Maintainer: Laszlo Papp <djszapi2 at gmail com>
3 pkgname=upslug2
4 pkgver=41
5 pkgrel=3
6 pkgdesc="A tool to flash your NSLU2 (Slug) from a computer on a local network."
7 url="http://www.nslu2-linux.org/wiki/Main/UpSlug2"
8 depends=('gcc-libs')
9 makedepends=('subversion')
10 arch=('i686' 'x86_64')
11 license=('custom')
12 source=()
13 md5sums=()
15 _svntrunk="http://svn.nslu2-linux.org/svnroot/upslug2/trunk"
16 _svnmod="upslug2"
18 build() {
19         cd ${srcdir}
21         msg "Connecting to ${_svnmod}.nslu2-linux.org SVN server...."
22         if [ -d ${_svnmod}/.svn ]; then
23                 (cd $_svnmod && svn up -r $pkgver)
24         else
25                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26         fi
28         msg "SVN checkout done or server timeout"
29         msg "Starting make..."
31         cp -r $_svnmod ${_svnmod}-build
32         cd ${_svnmod}-build
34         autoreconf -i
35         ./configure --prefix=/usr
36         make || return 1
37         make DESTDIR=${pkgdir} install || return 1
39         install -d ${pkgdir}/usr/share/man/man8/
40         gzip -c ${pkgname}.8 > ${pkgdir}/usr/share/man/man8/${pkgname}.8.gz || return 1
41         install -d ${pkgdir}/usr/share/licenses/${pkgname}
42         cp COPYING ${pkgdir}/usr/share/licenses/${pkgname}
44         rm -rf ${srcdir}/${_svnmod}-build