1 # Contributor: Michael Klier <chi@chimeric.de>
2 # Maintainer: Laszlo Papp <djszapi2 at gmail com>
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"
9 makedepends=('subversion')
10 arch=('i686' 'x86_64')
15 _svntrunk="http://svn.nslu2-linux.org/svnroot/upslug2/trunk"
21 msg "Connecting to ${_svnmod}.nslu2-linux.org SVN server...."
22 if [ -d ${_svnmod}/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
31 cp -r $_svnmod ${_svnmod}-build
35 ./configure --prefix=/usr
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