summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71739fe5c302d9e29b80b6d3d61b219d834acf32 (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
# Maintainer: Dominic Zimmer <s8dozimm@stud.uni-saarland.de> 
_pkgname=pseucoco
pkgname="${_pkgname}"
pkgver=2.3
pkgrel=3
pkgdesc="A Pseuco compiler written in Java"
arch=("i686" "x86_64")
url="https://liebe.cs.uni-saarland.de/gitlab/pseuco/pseuco-java-compiler"
license=('GPL')
depends=("java-runtime" "sudo")
makedepends=("gradle")

provides=("pseucoco")
conflicts=("pseucoco")
install="${_pkgname}.install"
source=("pseucoco::git+${url}.git")
md5sums=("SKIP")

build() {
    cd pseucoco
    gradle jar
}

package() {
    mkdir -p $pkgdir/usr/share/${_pkgname}/include
    mkdir -p $pkgdir/usr/bin
    cat ../executable > $pkgdir/usr/bin/pseucoco
    chmod +x $pkgdir/usr/bin/pseucoco
    cd pseucoco
    cp -r include build/libs/pseucoco-2.3.jar $pkgdir/usr/share/${_pkgname}
    echo "package"
}