diff options
author | spaceslug | 2022-08-02 19:48:57 +0200 |
---|---|---|
committer | spaceslug | 2022-08-02 19:48:57 +0200 |
commit | c8c11400cea444b03b76f18653321be4e3ae57b5 (patch) | |
tree | 45a42631070cc600bc05fbe715ff7e39142814c5 | |
download | aur-c8c11400cea444b03b76f18653321be4e3ae57b5.tar.gz |
init
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7184c8a940a9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = dwarffortress-linuxdwarfpack-appimage + pkgdesc = The AppImage of lnp-forge built LinuxDwarfPack appimage + pkgver = 0.47.05_r6 + pkgrel = 1 + url = https://github.com/McArcady/lnp-forge + arch = x86_64 + license = unknown + depends = ncurses + depends = qt5-base + depends = webkit2gtk + depends = tk + depends = tcl + depends = fuse2 + depends = fuse-overlayfs + depends = gtk3 + depends = glu + depends = sdl + depends = sdl_image + depends = sdl_ttf + depends = libsndfile + depends = openal + depends = glew + depends = gcc-libs + depends = glib2 + optdepends = nvidia-utils: If you have nvidia graphics + optdepends = alsa-lib: for alsa sound + optdepends = libpulse: for pulse sound + options = !strip + source = https://github.com/McArcady/lnp-forge/releases/download/0.47.05-r6/Dwarf_Fortress-0.47.05-r6-x86_64.AppImage + sha256sums = 3de45fb66f5fca546e8dab7e75a262a6bb1fcf3c5431ce8b66369be43a46b0e7 + +pkgname = dwarffortress-linuxdwarfpack-appimage diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..da6e9f6e0e92 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: spaceslug <me at spaceslug dot no> +pkgname=dwarffortress-linuxdwarfpack-appimage +pkgver=0.47.05_r6 +pkgrel=1 +pkgdesc="The AppImage of lnp-forge built LinuxDwarfPack appimage" +arch=('x86_64') +url="https://github.com/McArcady/lnp-forge" +license=('unknown') +depends=('ncurses' 'qt5-base' 'webkit2gtk' 'tk' 'tcl' 'fuse2' 'fuse-overlayfs' 'gtk3' 'glu' 'sdl' 'sdl_image' 'sdl_ttf' 'libsndfile' 'openal' 'glew' 'gcc-libs' 'glib2') +optdepends=('nvidia-utils: If you have nvidia graphics' + 'alsa-lib: for alsa sound' + 'libpulse: for pulse sound') +options=(!strip) # necessary otherwise the AppImage file in the package is truncated +_filename=Dwarf_Fortress-${pkgver//_/-}-x86_64.AppImage +source=("${url}/releases/download/${pkgver//_/-}/${_filename}") +sha256sums=('3de45fb66f5fca546e8dab7e75a262a6bb1fcf3c5431ce8b66369be43a46b0e7') +INSTALL_FOLDER="/opt/${pkgname}" +INSTALL_PATH="${INSTALL_FOLDER}/${_filename}" + + +prepare() { + chmod +x $_filename + ./$_filename --appimage-extract "usr/share/icons/hicolor/*/apps/linux-dwarf-pack.png" > /dev/null 2>&1 + ./$_filename --appimage-extract com.bay12forums.linuxdwarfpack.desktop > /dev/null 2>&1 +} + +build() { + sed -i -E "s|Exec=linux-dwarf-pack.sh|Exec=${INSTALL_PATH}|" squashfs-root/com.bay12forums.linuxdwarfpack.desktop + sed -i -E "s|Name=Dwarf Fortress|Name=Dwarf Fortress LDP|" squashfs-root/com.bay12forums.linuxdwarfpack.desktop + echo "Comment=Dwarf Fortress launcher for LinuxDwarfPack" >> squashfs-root/com.bay12forums.linuxdwarfpack.desktop + # Fix permissions; .AppImage permissions are 700 for all directories + chmod -R a-x+rX squashfs-root +} + +package() { + # install icons + install -dm755 "${pkgdir}/usr/share/icons" + cp -dpr --no-preserve=ownership "squashfs-root/usr/share/icons" "${pkgdir}/usr/share" + chmod -R 755 "${pkgdir}/usr/share/icons" + find "${pkgdir}/usr/share/icons" -type f -name "linux-dwarf-pack.png" -exec chmod 644 {} \; + + # install .desktop file + install -Dm644 "squashfs-root/com.bay12forums.linuxdwarfpack.desktop" "${pkgdir}/usr/share/applications/com.bay12forums.linuxdwarfpack.desktop" + install -Dm755 "${_filename}" "${pkgdir}${INSTALL_PATH}" + +} + + |