summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db2bef5c745a13cb0739dfc832407377e0ab15f3 (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: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=tomee
pkgver=10.0.0_M2
pkgrel=1
pkgdesc="Apache TomEE application server."
url="https://tomee.apache.org/"
license=("Apache")
depends=('java-environment>=11')
arch=("any")
options=(!strip)
install="${pkgname}.install"
source=("https://dlcdn.apache.org/${pkgname}/${pkgname}-${pkgver//_/-}/apache-${pkgname}-${pkgver//_/-}-plume.tar.gz"
        "${pkgname}.service"
        "${pkgname}-sysusers.conf"
        "${pkgname}-tmpfiles.conf")

sha256sums=('d1f0277a0b19eeb11e2e68d6c60e224377989eb384c239263089a65fd3daf25c'
            'f647a600b1a49dc9981fc6e820c260ca09e044a9dca5a421b5441b7acabebf38'
            'd86cd28fb7c26b684eb94d8dff22d95dbe53b9e73dd2df38dfe8a75c31251875'
            '499a574b00d279741e0578e0413af5edbe336f1f9fff6f12cdb58acaef35313f')

package() {
    rm -f "apache-${pkgname}-plume-${pkgver//_/-}/bin/"*.{bat,exe}
    install -d "${pkgdir}/opt"
    cp -r "apache-${pkgname}-plume-${pkgver//_/-}" "${pkgdir}/opt/${pkgname}"
    install -D -t "${pkgdir}/usr/lib/systemd/system/" -m 644 "${pkgname}.service"
    install -D -m 644 "${pkgname}-sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
    install -D -m 644 "${pkgname}-tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
    chmod -R u=rwX,g=rwX,o=rX "${pkgdir}/opt/${pkgname}"
}
# vim:set ts=4 sw=4 et: