updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / super-postak / PKGBUILD
blob980556308ad328c3f089b3a86f0b93056cf67d95
1 # Contributor: Nicky726 <nicky726 <at> gmail <dot> com>
2 pkgname=super-postak
3 _origname=SuperPostak
4 pkgver=1
5 pkgrel=1
6 pkgdesc="Java for sending e-mails to multiple recepient."
7 arch=('any')
8 url="https://trac.frantovo.cz/SuperPostak/wiki"
9 license=('GPL3')
10 depends=('java-runtime')
11 source=(https://frantovo.cz/projekty/${_origname}/${pkgname}.tar.gz
12         ${pkgname}-bin)
13 sha256sums=('50ba645bc0d75e5389efe9ab9726b560fe34d7520dfcebaa6cbcfb10e372e877'
14             '3fdbbd40b5c63ce3fc0a463045c9c2b0d7802d58db31e5ab3a9ff64609ddeddb')
16 package() {
17         # Prepare directories 
18         install -m755 -d "${pkgdir}/usr/share/java/${pkgname}"
19         install -m755 -d "${pkgdir}/usr/share/${pkgname}"
20         install -m755 -d "${pkgdir}/usr/bin"
22         cd "${srcdir}/jws"
23         # For future releases there should be some shared libs removed before copying the ohters
24         # All jars to /usr/share/java/super-postak
25         install -m644 *.jar \
26                 "${pkgdir}/usr/share/java/${pkgname}"
27         install -m644 lib/*.jar \
28                 "${pkgdir}/usr/share/java/${pkgname}"
29         # All other things to /usr/share/super-postak
30         install -m644 ./{index.php,*.jnlp} \
31                 "${pkgdir}/usr/share/java/${pkgname}"
32         # Copy script to /usr/bin
33         install -m755 "${srcdir}/${pkgname}-bin" "${pkgdir}/usr/bin/${pkgname}"