# Maintainer: Alexandru Iercosan-Lucaci # # $ makepkg -si # # Set DUNGEONDRAFT_DOWNLOAD_URL with the download url provided by # the Humble Bundle purchase page and the nrun makepkg. # # It will work with all current versions of Dungeondraft. # The version string is detected dinamically when run. # pkgname=dungeondraft pkgrel=2 pkgdesc='Dungeondraft is a tabletop encounter map creation tool designed to draw aesthetic maps without the typical frustrations and time investment' arch=('x86_64') url='https://dungeondraft.net' license=('custom:TailwindGamesLicense') depends=('mono' 'zenity') makedepends=('unzip') red_color='\033[0;31m' bold_font='\033[1m' no_color='\033[0m' if [[ -z $DUNGEONDRAFT_DOWNLOAD_URL ]]; then echo -e "${red_color}${bold_font}==> ERROR:${no_color}${bold_font} You need to set DUNGEONDRAFT_DOWNLOAD_URL to install Dungeondraft!" echo "" echo "To get the download URL go to your Humble Bundle purchases https://www.humblebundle.com/home/purchases, select Dungeondraft and then copy the link from the \"Manual Install\" button under the Linux section." echo "Afterwards execute \"export DUNGEONDRAFT_DOWNLOAD_URL=\"." exit 12 fi if [[ ! $DUNGEONDRAFT_DOWNLOAD_URL =~ ^https://cdn.humble.com/humblebundle/tailwindgamesllc_ChunI/Dungeondraft.* ]]; then echo -e "${red_color}${bold_font}==> ERROR:${no_color}${bold_font} DUNGEONDRAFT_DOWNLOAD_URL seems to be invalid! Your download link has to start with \"https://cdn.humble.com/humblebundle/tailwindgamesllc_ChunI/Dungeondraft*\"." exit 12 fi source=("$DUNGEONDRAFT_DOWNLOAD_URL") md5sums=('SKIP') pkgver="$(echo "$DUNGEONDRAFT_DOWNLOAD_URL" | grep -oE '[0-9]+(\.[0-9]+)*' | head -n 1)" package() { local destdir="$pkgdir/opt/Dungeondraft" mkdir -p "$destdir" mv "data_Dungeondraft" "$destdir" mv "Dungeondraft.pck" "$destdir" mv "Dungeondraft.png" "$destdir" mv "Dungeondraft.x86_64" "$destdir" chmod a+x "$destdir/Dungeondraft.x86_64" mv "EULA.txt" "$destdir" mv "example_template.zip" "$destdir" mkdir -p "$pkgdir/usr/share/applications" mv "Dungeondraft.desktop" "$pkgdir/usr/share/applications" }