diff options
author | Enova | 2023-03-18 11:04:01 +0000 |
---|---|---|
committer | Enova | 2023-03-18 11:04:01 +0000 |
commit | 59846b029baa42a0eb33dd04c3549e774f2695a8 (patch) | |
tree | b76c9a821bed661f1dc9e3671d815a0687cb1adf | |
download | aur-59846b029baa42a0eb33dd04c3549e774f2695a8.tar.gz |
Sync from GitHub
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rwxr-xr-x | Saradomin.desktop | 10 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bf2e44e20173 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = saradomin-launcher-git + pkgdesc = A clean, modern launcher with all the bells and whistles written in C# and DotNet6 for 2009Scape. + pkgver = r117.a84c3a1 + pkgrel = 1 + url = https://gitlab.com/2009scape/Saradomin-Launcher + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = dotnet-sdk>=6 + provides = saradomin-launcher=r117.a84c3a1 + conflicts = saradomin-launcher + options = !strip + source = saradomin-launcher::git+https://gitlab.com/2009scape/Saradomin-Launcher.git + source = Saradomin.desktop + sha256sums = SKIP + sha256sums = a8ae565774939d1c2a48c2d4b69a150d23015fd3f09a69663dc410d5a9802957 + +pkgname = saradomin-launcher-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e0832250ca39 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Enova <enova@waifu.club> + +_pkgname="saradomin-launcher" +pkgname="${_pkgname}-git" +pkgver=r117.a84c3a1 +pkgrel=1 +pkgdesc="A clean, modern launcher with all the bells and whistles written in C# and DotNet6 for 2009Scape." +arch=(x86_64) +url="https://gitlab.com/2009scape/Saradomin-Launcher" +license=('GPL3') +# TODO +depends=() +makedepends=( + 'git' + 'dotnet-sdk>=6') +source=( + "${_pkgname}::git+https://gitlab.com/2009scape/Saradomin-Launcher.git" + "Saradomin.desktop") +conflicts=("${_pkgname}") +provides=("saradomin-launcher=${pkgver}") +sha256sums=('SKIP' + 'a8ae565774939d1c2a48c2d4b69a150d23015fd3f09a69663dc410d5a9802957') +options=(!strip) + +pkgver() { + cd "$_pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "${srcdir}/${_pkgname}" + git submodule update --init --recursive +} + +build() { + mkdir "${srcdir}/build" + cd "${srcdir}/${_pkgname}" + dotnet restore + cd Saradomin + #--no-self-contained + dotnet publish --runtime linux-x64 --sc -o "${srcdir}/build" -c Release /p:DebugType=None /p:DebugSymbols=false -p:PublishTrimmed=false -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true +} + +package() { + cd "${srcdir}/${_pkgname}" + install -d "${pkgdir}/usr/bin/" + install -d "${pkgdir}/opt/${_pkgname}/" + install -D -m644 "${srcdir}/Saradomin.desktop" "${pkgdir}/usr/share/applications/Saradomin.desktop" + install -D -m644 "${srcdir}/${_pkgname}/Saradomin/Resources/Icons/saradomin.svg" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + cp -r "${srcdir}/build/." "${pkgdir}/opt/${_pkgname}/" + ln -s ../../opt/${_pkgname}/Saradomin "${pkgdir}/usr/bin/Saradomin" +} diff --git a/Saradomin.desktop b/Saradomin.desktop new file mode 100755 index 000000000000..679956bf5bf3 --- /dev/null +++ b/Saradomin.desktop @@ -0,0 +1,10 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Name=Saradomin Launcher +Comment=Custom launcher for 2009Scape +Exec=Saradomin +Icon=saradomin-launcher +Terminal=false +Type=Application +Categories=Application;Game; +StartupWMClass=Saradomin |