summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeposite Pirate2019-06-17 20:47:29 +0200
committerDeposite Pirate2019-06-17 20:47:29 +0200
commitf3f0691ec11ff9a0daf93edea4ac3e59f035ed5e (patch)
tree94a838952fff66487b92efc9c50444d9354906cb
parent519feb92e7a1c19893f1fab9646b5cf299897322 (diff)
* Add 64bit or 32bit only DevilutionX build.
new file: devilutionx-git/.SRCINFO new file: devilutionx-git/.gitignore new file: devilutionx-git/PKGBUILD new file: devilutionx-git/devilutionx.install new file: devilutionx-git/diablo.desktop new file: devilutionx-git/diablo_1_icon_by_mulek169.png
-rw-r--r--devilutionx-git/.SRCINFO26
-rw-r--r--devilutionx-git/.gitignore1
-rw-r--r--devilutionx-git/PKGBUILD50
-rw-r--r--devilutionx-git/devilutionx.install17
-rw-r--r--devilutionx-git/diablo.desktop11
-rw-r--r--devilutionx-git/diablo_1_icon_by_mulek169.pngbin0 -> 87792 bytes
6 files changed, 105 insertions, 0 deletions
diff --git a/devilutionx-git/.SRCINFO b/devilutionx-git/.SRCINFO
new file mode 100644
index 0000000..b8434fb
--- /dev/null
+++ b/devilutionx-git/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = devilutionx-git
+ pkgdesc = Diablo devolved for linux (git version)
+ pkgver = 0.4.0.r127.ge6f4e216
+ pkgrel = 3
+ url = https://github.com/diasurgical/devilutionX
+ install = devilutionx.install
+ arch = i686
+ arch = x86_64
+ license = custom:unlicense
+ makedepends = git
+ makedepends = cmake
+ depends = sdl2_mixer
+ depends = sdl2_ttf
+ depends = libsodium
+ provides = devilutionx=0.4.0.r127.ge6f4e216
+ source = devilutionx::git+https://github.com/diasurgical/devilutionX.git
+ source = LICENSE::https://raw.githubusercontent.com/diasurgical/devilutionX/master/LICENSE
+ source = diablo.desktop
+ source = diablo_1_icon_by_mulek169.png
+ sha256sums = SKIP
+ sha256sums = 88d9b4eb60579c191ec391ca04c16130572d7eedc4a86daa58bf28c6e14c9bcd
+ sha256sums = 1f0b591e2b5d14e69864967c056458a2d845da989b3c4ba251c7a89d49cd9c81
+ sha256sums = f569210a4217a5e7aa29366376554ffaeae84bdbe278b5335fd3cb37e1d0f82d
+
+pkgname = devilutionx-git
+
diff --git a/devilutionx-git/.gitignore b/devilutionx-git/.gitignore
new file mode 100644
index 0000000..ebc9f09
--- /dev/null
+++ b/devilutionx-git/.gitignore
@@ -0,0 +1 @@
+devilutionx
diff --git a/devilutionx-git/PKGBUILD b/devilutionx-git/PKGBUILD
new file mode 100644
index 0000000..f303daa
--- /dev/null
+++ b/devilutionx-git/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
+#
+# Upstream: https://git.metalpunks.info/arch-ports
+
+_pkgname=devilutionx
+pkgname=devilutionx-git
+pkgver=0.4.0.r127.ge6f4e216
+pkgrel=3
+pkgdesc="Diablo devolved for linux (git version)"
+arch=('i686' 'x86_64')
+url="https://github.com/diasurgical/devilutionX"
+license=('custom:unlicense')
+depends=('sdl2_mixer' 'sdl2_ttf' 'libsodium')
+makedepends=('git' 'cmake')
+provides=("${_pkgname}"="${pkgver}")
+install="${_pkgname}".install
+source=(
+ "${_pkgname}::git+https://github.com/diasurgical/devilutionX.git"
+ LICENSE::https://raw.githubusercontent.com/diasurgical/devilutionX/master/LICENSE
+ diablo.desktop
+ diablo_1_icon_by_mulek169.png
+)
+sha256sums=('SKIP'
+ '88d9b4eb60579c191ec391ca04c16130572d7eedc4a86daa58bf28c6e14c9bcd'
+ '1f0b591e2b5d14e69864967c056458a2d845da989b3c4ba251c7a89d49cd9c81'
+ 'f569210a4217a5e7aa29366376554ffaeae84bdbe278b5335fd3cb37e1d0f82d')
+
+pkgver() {
+ cd "${_pkgname}"
+ ( set -o pipefail
+ git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+build() {
+ cd "${_pkgname}"
+ rm -rf build64
+ mkdir -p build64 && cd build64
+ cmake -DBINARY_RELEASE="ON" ..
+ make
+}
+
+package() {
+ cd "${_pkgname}"
+ install -vDm755 build64/"${_pkgname}" "${pkgdir}"/usr/bin/"${_pkgname}"
+ install -vDm644 LICENSE -t "${pkgdir}"/usr/share/licenses/"${pkgname}"
+ install -vDm644 "${srcdir}"/diablo.desktop "${pkgdir}"/usr/share/applications/"${_pkgname}.desktop"
+ install -vDm644 "${srcdir}"/diablo_1_icon_by_mulek169.png "${pkgdir}"/usr/share/pixmaps/"${_pkgname}.png"
+}
diff --git a/devilutionx-git/devilutionx.install b/devilutionx-git/devilutionx.install
new file mode 100644
index 0000000..c12b165
--- /dev/null
+++ b/devilutionx-git/devilutionx.install
@@ -0,0 +1,17 @@
+post_install(){
+
+cat << EOF
+>>> Copy required files(e.g. diablodat.mpq) to your Diablo directory
+>>> (default is ~/.local/share/diasurgical/devilution) or move the
+>>> devilution executable in the same directory as "diablodat.mpq".
+>>> NOTE: There are two versions of build(native and multilib).
+>>> 64bit native Linux build are currently not in a playable state.
+>>> Please keep in mind that this is still being worked on and is
+>>> missing parts of UI and SoundEffects are not properly playing
+>>> now. It is advised to build a 32-bit build on a multilib system
+EOF
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/devilutionx-git/diablo.desktop b/devilutionx-git/diablo.desktop
new file mode 100644
index 0000000..3aafb88
--- /dev/null
+++ b/devilutionx-git/diablo.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Comment=Hack and slash role playing game (Diablo)
+Comment[fr]=Jeu de rĂ´le hack and slash (Diablo)
+Keywords=Hack And Slash;Role Playing Game;Diablo;
+Categories=Game;
+Name=DevilutionX
+Icon=devilutionx
+Exec=devilutionx
+Terminal=false
diff --git a/devilutionx-git/diablo_1_icon_by_mulek169.png b/devilutionx-git/diablo_1_icon_by_mulek169.png
new file mode 100644
index 0000000..1d1eaa1
--- /dev/null
+++ b/devilutionx-git/diablo_1_icon_by_mulek169.png
Binary files differ