summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c53e555a7ef083a927e186d202a77749e08a5fd7 (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
pkgdesc="Zinc is a stand-alone version of sbt's incremental compiler"
pkgname="zinc"
pkgver=0.3.9
pkgrel=1
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.service" # systemd service
)
md5sums=(
    'SKIP'
    'SKIP'
    'SKIP'
)

# 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.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"
}