updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / jalbum / PKGBUILD
blobd11a1a9c755b499011cb02deeb0e001b8e169627
1 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
2 # Contributer: Tom Billiet (mouse256@ulyssis.org)
4 pkgname=jalbum
5 pkgver=10.3.1
6 pkgrel=1
7 pkgdesc="free web photo album software and photo gallery software"
8 url="http://jalbum.net/"
9 license=('custom' 'lgpl')
10 depends=('java-runtime')
11 arch=('any')
12 source=(
13         #"http://www.jalbum-mirror.com/download/${pkgver}/Linux/NoVM/${pkgname}-${pkgver}-1.noarch.rpm"
14         "http://www.jalbum-mirror.com/download/${pkgver}/Linux/NoVM/${pkgname}_${pkgver}-1_all.deb"
15         "jalbum.sh"
16         "jalbum.desktop"
19 build() {
20         # when using rpm source
21         #bsdcpio -id < ${srcdir}/${pkgname}-${pkgver}-1.noarch.rpm
23         # when using deb source
24         ar vx ${srcdir}/${pkgname}_${pkgver}-1_all.deb
25         tar -zxf data.tar.gz
27         # only take the jalbum dir, the rest we install on a different way
28         mv usr/share/jalbum ./
29         rm -rf usr
30         #remove batfiles and java sourcefiles
31         cd jalbum
32         find \( -name "*.bat" -o -name "*.cmd" -o -name "*.java" -o -name "compile.sh" \) -delete
34         #remove lib/sunos/windows
35         rm -rf lib/{sunos,windows}
37         #remove startupscript, we install one in usr/bin
38         rm -f startjalbum.sh
40         # remove distritbution text, it doesnt add usefull info
41         rm -f distribution.txt
43         #make sure no executable files are here
44         chmod -R u=rwX,go=rX *
47 package() {
48         install -dm755 ${pkgdir}/usr/share/
49         cp -a jalbum ${pkgdir}/usr/share/jalbum
51         #move licence to the correct place
52         install -dm755 ${pkgdir}/usr/share/licenses/
53         cp -a ${pkgdir}/usr/share/${pkgname}/license ${pkgdir}/usr/share/licenses/${pkgname}
54         rm -rf ${pkgdir}/usr/share/${pkgname}/license
56         install -dm755 ${pkgdir}/usr/share/pixmaps
57         ln -s "/usr/share/jalbum/icons/JalbumApp48.png" "${pkgdir}/usr/share/pixmaps/jalbum.png"
58         install -Dm644 $srcdir/jalbum.desktop $pkgdir/usr/share/applications/$pkgname.desktop
59         install -Dm755 $srcdir/jalbum.sh $pkgdir/usr/bin/jalbum
61 sha256sums=('c31586deb3c0da9b1dbaf925fe100f4ea17307ccc05a231964d0eb07e117e443'
62             'e1efa97077ac34ba3473cc1440f3a1427baea61e3a807d80efa6cf95c33eaf32'
63             '7a059d23bd78e18681e5d960b213ef0cd2d4f37954bee40340409b459436fb33')