1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="Database generator for the iRiver H (aka iHP) series harddisk jukeboxes."
8 url="http://www.shredzone.de/projects/ifish"
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 \
17 md5sums=('a5c05ea0df3bc3c405f88c19a0ea8593'
18 'b0ca0fed446d422052c47fbd863e7d9f'
19 'a4b8a648e8f565d6fe916a4d4701c7e0'
20 'e908637ec8eab5a84b547ef5e800e020')
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