blob: d70969d531c346dbc53c2d3019aeace98eb6ce47 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
pkgdesc="Zinc is a stand-alone version of sbt's incremental compiler"
pkgname="zinc"
pkgver=0.3.11
pkgrel=2
url="https://github.com/typesafehub/zinc"
arch=('any')
license=('Apache')
depends=('java-environment')
provides=('zinc')
conflicts=('zinc-git')
source=(
"http://downloads.typesafe.com/zinc/$pkgver/zinc-$pkgver.tgz"
"zincer.sh" # server launcher
"zincer.conf" # service env vars
"zincer.service" # systemd service
)
backup=(
'etc/conf.d/zincer.conf'
)
md5sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
options=('!strip')
# 1.
prepare() {
true
}
# 2.
build() {
true
}
# 3.
check() {
true
}
# 4.
package() {
local home="/opt/zinc"
local source="$pkgname-$pkgver"
local target="$pkgdir/$home"
mkdir -p "$target"
cp -a "$source/." "$target/"
install -D -m755 zincer.sh "$target/zincer.sh"
install -D -m644 zincer.conf "$pkgdir/etc/conf.d/zincer.conf"
install -D -m644 zincer.service "$pkgdir/usr/lib/systemd/system/zincer.service"
mkdir -p $pkgdir/usr/bin
ln -s "$home/bin/zinc" "$pkgdir/usr/bin/zinc"
ln -s "$home/zincer.sh" "$pkgdir/usr/bin/zincer"
}
|