summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bdb8c856aafc42868fe63722d2e6b242c9ea930 (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
# Maintainer: Morgana <morganamilo@gmail.com>

_pkgname=PacmanLogger
pkgname=pacmanlogger
pkgver=0.1.4
pkgrel=1
pkgdesc="A scala application that makes reading pacman's logs easier"
arch=('any')
url="https://github.com/carlocastoldi/PacmanLogger"
license=('MIT')
conflicts=('pacmanlogger')
depends=('java-runtime>=8')
makedepends=('sbt' 'java-environment>=8')
provides=('pacmanlogger')
source=("$pkgname-$pkgver::https://github.com/carlocastoldi/PacmanLogger/archive/$pkgver.tar.gz" "pacmanlogger.sh")
md5sums=('013aa5496ff818f3632e377ed004889c'
         'abe1b34cb77dfd99a1bf726afb689e96')

build() {
	cd "$_pkgname-$pkgver"
	sbt assembly
}

package() {
	install -Dm755 "pacmanlogger.sh" "$pkgdir/usr/bin/pacmanlogger"

	cd "$_pkgname-$pkgver"
	install -Dm644 "target/scala-2.12/PacmanLogger-assembly-$pkgver.jar" "$pkgdir/usr/share/scala/$pkgname/$pkgname.jar"
	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}