summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a56a3afef41372e3bfd56ec6506bedd085f3a86c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Jake Merdich <jake@merdich.com>
pkgname=fmpp
pkgver=0.9.15
pkgrel=1
pkgdesc="FreeMarker PreProcessor"
arch=('any')
url="http://fmpp.sourceforge.net/"
license=("Apache")
depends=("java-runtime" "bash")
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_${pkgver}.tar.gz"
        "fix_opt.patch")
sha256sums=("b893451b5450a7f35fe680e934f6903ec8143d88959dcfca5d17467fbe4142f9"
            "8bc9ddb2984d4c75847dea66872b5f322f6f5aabcc3cbb881e796ec3d071936d")

prepare() {
    patch "${srcdir}"/"${pkgname}/bin/fmpp" "${srcdir}/fix_opt.patch"

}

package() {
    cd "${srcdir}"/"${pkgname}"
    install -D bin/fmpp "$pkgdir"/usr/bin/fmpp

    for lib_file in lib/*.jar; do
        install -D -m644 "${lib_file}" "${pkgdir}/opt/${pkgname}/${lib_file}"
    done

    for lic_file in LICENSE*; do
        install -D -m644 "${lic_file}" "${pkgdir}/usr/share/licenses/${pkgname}/${lic_file}"
    done
}