summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9dfaba459357670f57b17f07e7e22f8d77003d4e (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
# Maintainer: Charlie Waters <cawiii at me dot com>

pkgname=openosrs-launcher-appimage
pkgver=2.2.0
pkgrel=2
pkgdesc='Open-source client for Old School RuneScape with more functionality and less restrictions. (AppImage Launcher)'
arch=('x86_64')
license=('BSD')
url='https://github.com/open-osrs/launcher'
_appimage="OpenOSRS_${pkgver}.AppImage"
source=("${_appimage}::https://github.com/open-osrs/launcher/releases/download/${pkgver}/OpenOSRS.AppImage"
        openosrs-launcher.desktop)
sha256sums=('45e7f065b21fceb3b77dc81f3e8742354a2936aead5be9ed4bc0af42d04a182e'
            'SKIP')
options=(!strip)
optdepends=('gvfs: enable links')

prepare() {
    chmod +x ${_appimage}
    ./${_appimage} --appimage-extract > /dev/null
}

package() {
    install -Dm644 \
        "${srcdir}/openosrs-launcher.desktop" \
        "${pkgdir}/usr/share/applications/openosrs-launcher.desktop"

    install -Dm644 \
        "${srcdir}/squashfs-root/openosrs.png" \
        "${pkgdir}/usr/share/pixmaps/openosrs-launcher.png"

    install -Dm755 \
        "${srcdir}/${_appimage}" \
        "${pkgdir}/usr/bin/openosrs-launcher"
}