updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / gobiblecreator / PKGBUILD
blobfd32925b9640ffbf42728d9bc94fb03a19aded66
1 # Maintainer: hauzer <alokinpwn@gmail.com>
2 pkgname=gobiblecreator
3 _pkgname=GoBibleCreator
4 pkgver=2.4.1
5 pkgrel=1
6 pkgdesc="Go Bible creation software."
7 arch=('any')
8 url="http://www.crosswire.org/gobible/"
9 license=('GPL')
10 depends=('java-runtime')
11 makedepends=('unzip')
12 _pkgfile="${_pkgname}_Version_${pkgver}.zip"
13 source=("${_pkgfile}::http://dl.box.net/dl/656161759/7cfc797906b406abe08d272b376c057e?a=1281e81785029476a2cf3147ec5cab9b&m=10.12.30.52,11211&x=1&c=0c022a2484631b24e3ebc3d92d7f7b3a")
14 noextract=("${_pkgfile}")
15 md5sums=('b25b69b99aba0fc7a651cadbfc9c3d9f')
17 build() {
18   unzip "${srcdir}/${_pkgfile}" -d "${srcdir}/${pkgname}-${pkgver}"
21 package() {
22   cat > "${srcdir}/${pkgname}" <<EOF
23 #!/bin/bash
24 "\$JAVA_HOME/bin/java" -jar '/opt/${pkgname}/${_pkgname}.jar' "\$@"
25 EOF
27   mkdir -p "${pkgdir}/opt/${pkgname}"
28   cp -r "${srcdir}/${pkgname}-${pkgver}/"* "${pkgdir}/opt/${pkgname}/"
29   install -D -m 755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
30   chmod 755 "${pkgdir}/opt/${pkgname}/${_pkgname}.jar"