updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / juststyle / PKGBUILD
blob5bf87ee8e27847e8a5a46d1f95183bb720913de4
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
7 pkgname=juststyle
8 pkgver=1.3.3
9 _pkgver=`echo $pkgver | sed 's|\.||g'`
10 pkgrel=2
11 pkgdesc="JustStyle CSS Editor"
12 arch=("i686" "amd64")
13 url="http://www.ucware.com/juststyle"
14 license=()
15 groups=()
16 depends=('jre')
17 makedepends=('unzip')
18 makedepends=()
19 source=("http://www.ucware.com/${pkgname}/${pkgname}-${_pkgver}-java-nojre.zip"
20         "juststyle"
21         "juststyle.png"
22         "juststyle.desktop")
23 noextract=("*.zip")
24 license=("custom")
25 md5sums=('6fc9f2c5de08d00b0848532d8caae637'
26          'b672416afe61a1d7e13df672a4015285'
27          '298412873e376a8858903a17076e1a01'
28          'd4922463bc9622a5fe3942e16954f300')
30 package() {
31   cd "$srcdir"
33   install -d "${pkgdir}/opt/juststyle"
34   cd "${pkgdir}/opt/juststyle"
36   unzip "${srcdir}/${pkgname}-`echo ${pkgver} | sed 's|\.||g'`-java-nojre.zip" -d .
38   rm -rf windows os2 linux
40   install -Dm0755 "${srcdir}/juststyle" "${pkgdir}/usr/bin/juststyle"
41   install "${srcdir}/juststyle.png" "${pkgdir}/opt/juststyle/juststyle.png"
42   install -d "${pkgdir}/usr/share/applications"
43   install "${srcdir}/juststyle.desktop" "${pkgdir}/usr/share/applications/juststyle.desktop"
45   # Fix permissions
46   chmod 755 "${pkgdir}/opt/juststyle/juststyle.jar"
50 # vim:set ts=2 sw=2 et: