pkgname=d2launcher pkgver=4.0.5 pkgrel=1 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' '08f389f9fecaf9448d98998be82108dcb007018af609c838f89fd5d56a6501a0') 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/" }