# Maintainer: unknown pkgname=jutoh pkgver=1.50 pkgrel=1 pkgdesc="An ebook creation tool" url="http://www.jutoh.com" license="custom" arch=(i686 x86_64) depends=('libjpeg6') if [ "${CARCH}" = "x86_64" ]; then source=(http://www.jutoh.com/Jutoh-${pkgver}-x86_64.tar.gz) md5sums=('a9042060c19573eb7c22c464129b18d0') fi if [ "${CARCH}" = "i686" ]; then source=(http://www.jutoh.com/Jutoh-${pkgver}-i386.tar.gz) md5sums=('d050162e21d94b62d8d8a1fc302b801e') fi build() { cd $srcdir tar -xzf JutohData.tar.gz msg "Cleaning files" rm -f JutohData.tar.gz if [ "${CARCH}" = "x86_64" ]; then rm -f jutoh-${pkgver}-x86_64.tar.gz fi if [ "${CARCH}" = "i686" ]; then rm -f jutoh-${pkgver}-i386.tar.gz fi msg "Copying files" install -dm755 $pkgdir/usr/share/jutoh cp -R * $pkgdir/usr/share/jutoh mkdir -p $pkgdir/usr/bin ln -s $pkgdir/usr/share/jutoh/jutoh $pkgdir/usr/bin/jutoh msg "Creating desktop file" mkdir -p $pkgdir/usr/share/applications cp $pkgdir/usr/share/jutoh/jutoh.desktop $pkgdir/usr/share/applications msg "Creating icons" mkdir -p $pkgdir/usr/share/pixmaps cp $pkgdir/usr/share/jutoh/appicons/jutoh128x128.png $pkgdir/usr/share/pixmaps/jutoh.png }