blob: 83b368ca10ee5bb820c6fee2e18b3ddb4d197518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Alexandru Iercosan-Lucaci <lucaci32u4@gmail.com>
#
# $ 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=<the url you copied>\"."
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"
}
|