summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c0973cde85fdf0d4fb7bc72255fbc5e6440794b (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
pkgname=rscrevolution
_pkgname=RSCRevolution
pkgver=1.0.0
pkgrel=1
pkgdesc="The most developed, longest running, most active and the only FREE OldSchool RuneScape Classic Private Server."
arch=('any')
url=""
license=('N/A')
depends=('java-runtime>=11')
makedepends=('git')
provides=("${pkgname%}")
conflicts=("${pkgname%}")
source=('git+https://gitlab.com/coreybruce/rscrevolution')
sha256sums=('SKIP')

package() {
    cd "$srcdir/$pkgname"
    install -dm755 "$pkgdir/opt/$_pkgname"
    cp -r ./ "$pkgdir/opt/$_pkgname"

    # Link to binary
    install -dm755 "$pkgdir/usr/bin"
    ln -s "/opt/$_pkgname/$_pkgname" "$pkgdir/usr/bin/${pkgname%}"

    # Desktop Entry
    install -Dm644 "$srcdir/$pkgname/$_pkgname.desktop" \
        "$pkgdir/usr/share/applications/$_pkgname.desktop"
    sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$_pkgname.desktop"
}