1 # Maintainer: Testuser_01 <arch@nico-siebler.de>
6 pkgdesc="Freetz is a firmware-extension (modification) for the AVM Fritz!Box and devices with identical hardware. \
7 You can build your own firmware images. This is the latest SVN revision from the trunk"
8 url="http://http://freetz.org/"
10 source=('freetz-copy-repository')
11 md5sums=('a08a75a6ef8c794cb988ebda2a7a6db1')
12 install=("${pkgname}.install")
14 if [ "$CARCH" = "x86_64" ]; then
15 depends=('glibc' 'lib32-glibc' 'gcc-multilib' 'binutils-multilib' 'autoconf' 'automake' 'libtool' 'make' 'bzip2'
16 'ncurses' 'lib32-ncurses' 'zlib' 'flex' 'bison' 'patch' 'patchutils' 'texinfo' 'tofrodos'
17 'gettext' 'pkg-config' 'eclipse-ecj' 'perl' 'perl-string-crc32' 'xz' 'coreutils'
18 'svn' 'ruby' 'gawk' 'python2' 'python' 'libusb' 'usbutils' 'realpath' 'fastjar' 'git'
21 depends=('glibc' 'gcc' 'binutils' 'autoconf' 'automake' 'libtool' 'make' 'bzip2' 'ncurses' 'zlib' 'flex'
22 'bison' 'patch' 'patchutils' 'texinfo' 'tofrodos' 'gettext' 'pkg-config' 'eclipse-ecj'
23 'perl' 'perl-string-crc32' 'xz' 'coreutils' 'svn' 'ruby' 'gawk' 'python2' 'python'
24 'libusb' 'usbutils' 'realpath' 'fastjar' 'git' 'graphicsmagick')
27 _svntrunk="http://svn.freetz.org/trunk"
28 _svnmod="${pkgname}-trunk"
31 cd "${srcdir}" || return 1
33 msg "Connecting to SVN server...." || return 1
35 if [ -d $_svnmod/.svn ]; then
36 (cd $_svnmod && svn up) || return 1
38 svn co $_svntrunk --config-dir ./ $_svnmod || return 1
41 msg "SVN checkout done or server timeout" || return 1
46 cd "${srcdir}/" || return 1
47 install -dm755 "${pkgdir}/opt/${pkgname}" || return 1
48 cp -fr "${pkgname}-trunk" "${pkgdir}/opt/${pkgname}" || return 1
49 install -D -dm755 "${pkgdir}/usr/bin" || return 1
50 install -m755 'freetz-copy-repository' "${pkgdir}/usr/bin" || return 1
51 msg "This is the build environment only to compile your firmware image! I'm NOT responsible for any damage!" || return 1