1 # Contributor: fancris3 <fancris3 at gmail.com>
2 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
10 install=('gfxboot.install')
11 pkgdesc="Graphical Boot Logo tool"
12 url="http://www.opensuse.org"
13 depends=('perl-html-parser' 'freetype2' 'cpio' 'nasm')
14 makedepends=('rpmextract')
15 source=(http://download.opensuse.org/source/distribution/11.1/repo/oss/suse/src/${pkgname}-${pkgver}-${_pkgver}.src.rpm \
19 md5sums=('cf6b45facc757fa4c93f119a22dff834'
20 'f824c5bc2f716f8029677cae6956c1c7')
23 echo -e "\033[1;34m :: \033[1;39m Building ... please wait \033[1;0m"
25 rpmextract.sh ${pkgname}-${pkgver}-${_pkgver}.src.rpm 2>/dev/null
27 for i in $(find -name '*.tar.bz2');do tar -jxf $i;done
28 mv -f themes ${pkgname}-${pkgver}/
30 chown -R root:root ${pkgname}-${pkgver}
32 cd ${pkgname}-${pkgver}
34 make -s 2>/dev/null || return 1
36 make -s DESTDIR=$pkgdir installsrc || return 1
38 install -d -m 755 ${pkgdir}/usr/{sbin,share/man/man8,share/doc/gfxboot} || return 1
39 install -m 755 gfxboot gfxboot-compile gfxboot-font ${pkgdir}/usr/sbin || return 1
40 install -m 644 doc/gfxboot.8 ${pkgdir}/usr/share/man/man8/ || return 1
41 install -m 644 ../gfxboot.html ${pkgdir}/usr/share/doc/gfxboot || return 1
45 # alternative source download
46 # source=(http://archpkg.rodp.net/src/${pkgname}-${pkgver}-${pkgrel}.src.rpm)