updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / neufbox4-tools-svn / PKGBUILD
blobfa4490cc0fbde50caa1d7f8c4be48606239dba5b
1 # Contributor: Mildred <silkensedai@online.fr>
2 # kate: hl Bash; space-indent on; indent-width 2;
3 # use versionpkg
5 pkgname=neufbox4-tools-svn
6 pkgver=92
7 pkgrel=1
8 pkgdesc="NeufBox4 tools"
9 arch=(i686)
10 url="http://www.neufbox4.org"
11 license=('GPL')
12 depends=(zlib tftp-hpa python pylzma)
13 makedepends=('subversion' zlib)
14 provides=(neufbox4-tools)
15 conflicts=(neufbox4-tools)
16 replaces=(openbox4-tools-svn)
17 backup=()
18 groups=()
19 options=(docs)
20 install=
21 source=()
22 noextract=()
23 md5sums=()
25 _svntrunk="http://svn.gna.org/svn/openbox4/trunk/tools"
26 _svnmod=openbox4-tools
28 build() {
29   local dest="$startdir/pkg"
30   cd "$startdir/src"
32   if [ -d "$_svnmod/.svn" ]; then
33     msg "SVN update $_svnmod"
34     (cd "$_svnmod" && svn up -r "$pkgver")
35   else
36     msg "SVN checkout $_svntrunk $_svnmod"
37     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
38   fi
40   msg "SVN operation done or server timeout. Preparing sources..."
42   cp -ruTf "$_svnmod" "$_svnmod-build"
43   cd "$_svnmod-build"
45   msg "In `pwd` Starting build..."
47   for d in nb4-adsl nb4-concat nb4-extract nb4-unsquash unsqlzma; do
48     msg "Building $d"
49     cd "$d"
50     make || return 1
51     cd ..
52   done
54   msg "Installing nb4-concat"
55   cd nb4-concat
56   install -D "nb4-concat" "$dest/usr/bin/nb4-concat"
57   install -D "README" "$dest/usr/share/$pkgname/README.nb4-concat"
58   cd ..
59   msg "Installing nb4-extract"
60   cd nb4-extract
61   install -D "nb4-extract" "$dest/usr/bin/nb4-extract"
62   install -D "README" "$dest/usr/share/$pkgname/README.nb4-extract"
63   cd ..
64   msg "Installing nb4-adsl"
65   cd nb4-adsl
66   install -D "nb4-adsl" "$dest/usr/bin/nb4-adsl"
67   install -D "README" "$dest/usr/share/$pkgname/README.nb4-adsl"
68   cd ..
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"