diff options
author | Starfall <us@starfall.systems> | 2024-01-08 08:20:20 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2024-01-08 08:25:52 -0600 |
commit | 05210905560668529d9861f176c5c00b78ac53cb (patch) | |
tree | 833709d879f1531205d61c795813435636e442a0 /d2launcher/PKGBUILD | |
parent | db09bd234b0fe1b47b38d3466e518a2ab5254380 (diff) |
d2launcher
Diffstat (limited to 'd2launcher/PKGBUILD')
-rw-r--r-- | d2launcher/PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/d2launcher/PKGBUILD b/d2launcher/PKGBUILD new file mode 100644 index 0000000..af4b189 --- /dev/null +++ b/d2launcher/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=d2launcher +pkgver=3.6.4 +pkgrel=3 +pkgdesc="Launcher for Diablo 2, Median XL and D2 Stats" +arch=('x86_64') +url="https://github.com/murkl/d2launcher" +license=('unknown') +depends=(wine zenity curl p7zip jq wmctrl fuse2 zip xdelta3) +optdepends=('lutris-wine-meta: Install in case of graphic issues') +source=("d2launcher.desktop" + "d2launcher.patch" + "${pkgname}-${pkgver}.tar.gz::https://github.com/murkl/d2launcher/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('SKIP' + 'SKIP' + '2aa225ee00d653bb13f4a84caf48d7cfc172f7555613c2f7c063fdaa784e2c5d') + +prepare() { + patch --directory="${srcdir}/${pkgname}-${pkgver}" --strip=1 --input="${srcdir}/d2launcher.patch" +} + +package() { + mkdir -p "${pkgdir}/opt/d2launcher" + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/applications" + cp -r "${srcdir}/${pkgname}-${pkgver}/"* "$pkgdir/opt/d2launcher/" + cp d2launcher.desktop "${pkgdir}/usr/share/applications/" + chmod +x "${pkgdir}/opt/d2launcher/d2launcher" + ln -s /opt/d2launcher/d2launcher "${pkgdir}/usr/bin/" +} |