1 # Contributor: Mildred <silkensedai@online.fr>
2 # kate: hl Bash; space-indent on; indent-width 2;
5 pkgname=neufbox4-tools-svn
8 pkgdesc="NeufBox4 tools"
10 url="http://www.neufbox4.org"
12 depends=(zlib tftp-hpa python pylzma)
13 makedepends=('subversion' zlib)
14 provides=(neufbox4-tools)
15 conflicts=(neufbox4-tools)
16 replaces=(openbox4-tools-svn)
25 _svntrunk="http://svn.gna.org/svn/openbox4/trunk/tools"
26 _svnmod=openbox4-tools
29 local dest="$startdir/pkg"
32 if [ -d "$_svnmod/.svn" ]; then
33 msg "SVN update $_svnmod"
34 (cd "$_svnmod" && svn up -r "$pkgver")
36 msg "SVN checkout $_svntrunk $_svnmod"
37 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
40 msg "SVN operation done or server timeout. Preparing sources..."
42 cp -ruTf "$_svnmod" "$_svnmod-build"
45 msg "In `pwd` Starting build..."
47 for d in nb4-adsl nb4-concat nb4-extract nb4-unsquash unsqlzma; do
54 msg "Installing nb4-concat"
56 install -D "nb4-concat" "$dest/usr/bin/nb4-concat"
57 install -D "README" "$dest/usr/share/$pkgname/README.nb4-concat"
59 msg "Installing nb4-extract"
61 install -D "nb4-extract" "$dest/usr/bin/nb4-extract"
62 install -D "README" "$dest/usr/share/$pkgname/README.nb4-extract"
64 msg "Installing nb4-adsl"
66 install -D "nb4-adsl" "$dest/usr/bin/nb4-adsl"
67 install -D "README" "$dest/usr/share/$pkgname/README.nb4-adsl"
69 msg "Installing nb4-unsquash"
70 install -D nb4-unsquash/unsquashfs "$dest/usr/bin/nb4-unsquash"
71 install -D nb4-unsquash/README "$dest/usr/share/$pkgname/README.nb4-unsquash"
72 msg "Installing nb4-getfirm"
73 install -D scripts/getfirm.sh "$dest/usr/bin/nb4-getfirm"
74 msg "Installing nb4-unsqlzma"
75 install -D unsqlzma/unsqlzma "$dest/usr/bin/nb4-unsqlzma"
76 install -D unsqlzma/README "$dest/usr/share/$pkgname/README.nb4-unsqlzma"
77 msg "Installing nb4-unsquash.py"
78 install -D unsquash/unsquash.py "$dest/usr/bin/nb4-unsquash.py"
79 install -D unsquash/README "$dest/usr/share/$pkgname/README.nb4-unsquash.py"
80 install -D autocreate-firmware/Makefile "$dest/usr/share/$pkgname/Makefile.kernel"