updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / ifish / PKGBUILD
blobbeebdba65f78c1e49ebb52d292e00898e1f86930
1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=ifish
4 pkgver=1.4
5 pkgrel=3
6 pkgdesc="Database generator for the iRiver H (aka iHP) series harddisk jukeboxes."
7 arch=('i686' 'x86_64')
8 url="http://www.shredzone.de/projects/ifish"
9 license=('MPL')
10 depends=('java-runtime' 'desktop-file-utils')
11 install=$pkgname.install
12 source=(http://www.shredzone.de/download/java/$pkgname/iFish.jar \
13         http://www.shredzone.de/download/java/$pkgname/${pkgname}_en.pdf \
14         $pkgname.png \
15         $pkgname.desktop)
17 md5sums=('a5c05ea0df3bc3c405f88c19a0ea8593'
18          'b0ca0fed446d422052c47fbd863e7d9f'
19          'a4b8a648e8f565d6fe916a4d4701c7e0'
20          'e908637ec8eab5a84b547ef5e800e020')
22 build() {
23   cd "${srcdir}"
25   install -D -m644 "${srcdir}/iFish.jar" "${pkgdir}/usr/share/java/$pkgname/$pkgname.jar" || return 1
26   install -D -m644 "${srcdir}/${pkgname}_en.pdf" "${pkgdir}/usr/share/java/$pkgname/help/${pkgname}_en.pdf" || return 1
27   install -D -m644 "${srcdir}/$pkgname.png" "${pkgdir}/usr/share/pixmaps/$pkgname.png" || return 1
28   install -D -m644 "${srcdir}/$pkgname.desktop" "${pkgdir}/usr/share/applications/$pkgname.desktop" || return 1
30   install -d "${pkgdir}/usr/bin"
31   echo "#!/bin/bash" > "${pkgdir}/usr/bin/$pkgname" || return 1
32   echo "java -jar /usr/share/java/$pkgname/$pkgname.jar" >> "${pkgdir}/usr/bin/$pkgname" || return 1
33   chmod 755 "${pkgdir}/usr/bin/$pkgname" || return 1