-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chloris
committed
Sep 9, 2022
1 parent
9a0a84c
commit dc5567e
Showing
1 changed file
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,44 @@ | ||
# Template file for 'devilutionX' | ||
pkgname=devilutionX | ||
version=1.2.1 | ||
version=1.4.1 | ||
revision=1 | ||
build_style=cmake | ||
configure_args="-DVERSION_NUM=$version -DBINARY_RELEASE=ON -DTTF_FONT_PATH=\"/usr/share/fonts/truetype/CharisSILB.ttf\"" | ||
makedepends="SDL2-devel SDL2_ttf-devel SDL2_mixer-devel libsodium-devel" | ||
configure_args="-DVERSION_NUM=$version -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF" | ||
hostmakedepends="gettext git mpqtool pkgconf" | ||
makedepends="bzip2-devel fmt-devel libsodium-devel SDL2-devel SDL2_image-devel SDL2_mixer-devel zlib-devel" | ||
short_desc="Diablo I engine for modern operating systems" | ||
maintainer="MarcoAPC <marcoaureliopc@gmail.com>" | ||
license="Unlicense" | ||
homepage="https://github.com/diasurgical/devilutionX" | ||
distfiles="https://github.com/diasurgical/devilutionX/archive/${version}.tar.gz" | ||
checksum=002dcbd4d4a5bdf8db1a3ec01139e5bfbed46d6a1caa32b17c9f2df161ad3521 | ||
checksum=54b9fd496eba5b82d7e64891ab4de808f539c60b3b94bfa49639e0d9580fb7b8 | ||
|
||
post_install() { | ||
vlicense LICENSE | ||
post_build() { | ||
# Create devilutionx.mpq asset archive | ||
# (smpq, required by the build script, is not available in Void repos | ||
# so an alternative program mpqtool is used to create the MPQ archive) | ||
mpqtool new 'build/assets' 'build/devilutionx.mpq' | ||
} | ||
|
||
do_install() { | ||
vbin 'build/devilutionx' | ||
# Install assets to the directory that is recognized by the binary | ||
vinstall 'build/devilutionx.mpq' 644 'usr/share/diasurgical/devilutionx' | ||
|
||
vdoc 'README.md' | ||
vlicense 'LICENSE' | ||
|
||
cd 'Packaging' | ||
# Install desktop entries | ||
vinstall 'nix/devilutionx.desktop' 644 'usr/share/applications' | ||
vinstall 'nix/devilutionx-hellfire.desktop' 644 'usr/share/applications' | ||
# Install icons | ||
vinstall 'resources/icon.png' 644 \ | ||
'usr/share/icons/hicolor/512x512/apps' 'devilutionx.png' | ||
vinstall 'resources/hellfire.png' 644 \ | ||
'usr/share/icons/hicolor/512x512/apps' 'devilutionx-hellfire.png' | ||
vinstall 'resources/icon_32.png' 644 \ | ||
'usr/share/icons/hicolor/32x32/apps' 'devilutionx.png' | ||
vinstall 'resources/hellfire_32.png' 644 \ | ||
'usr/share/icons/hicolor/32x32/apps' 'devilutionx-hellfire.png' | ||
} |