summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 213c2e0fd1e34b80e8840ae929e36989a064b56d (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
32
33
34
35
# Maintainer: Zach Callear <zach@callear.org>
pkgname=resin-pro
pkgver=4.0.65
pkgrel=2
pkgdesc='Resin, a web server and Java EE application server from Caucho Technology'
arch=('x86_64')
url='https://caucho.com/products/resin'
license=('custom:Caucho Developer Source License')
depends=('java-runtime-headless')
source=("http://caucho.com/download/$pkgname-$pkgver.tar.gz")
sha256sums=(
    # Caucho does not provide hashes, so this is generated by the package maintainer:
    'd5e148314e0865ffe238664b6e27ff704042c99bf1061fedad60875c7616ad08'
)

build() {
	cd "$pkgname-$pkgver"
    # The path of the init.d script is from a comment in the resinctl script.
    # It's unused but left in place. This package doesn't yet provide a systemd
    # service.
    ./configure \
        --prefix=/usr/share/resin \
        --with-resin-root=/var/resin \
        --with-resin-log=/var/log/resin \
        --with-resin-conf=/etc/resin \
        --with-resin-init-d=/usr/share/resin/contrib/init.resin \
        --enable-64bit
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}