mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 14:27:35 +00:00
Ports: Add FreeDink port
This commit is contained in:
parent
287bbabbc1
commit
3ce4d0f89a
4 changed files with 53 additions and 0 deletions
29
Ports/freedink/package.sh
Executable file
29
Ports/freedink/package.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=FreeDink
|
||||
version=109.6
|
||||
useconfigure="true"
|
||||
depends=("SDL2" "SDL2_image" "SDL2_mixer" "SDL2_ttf" "SDL2_gfx" "gettext" "fontconfig" "glm")
|
||||
workdir="freedink-${version}"
|
||||
freedink_data="freedink-data-1.08.20190120"
|
||||
files="https://ftpmirror.gnu.org/gnu/freedink/freedink-${version}.tar.gz freedink-${version}.tar.gz
|
||||
https://ftpmirror.gnu.org/gnu/freedink/freedink-${version}.tar.gz.sig freedink-${version}.tar.gz.sig
|
||||
https://ftpmirror.gnu.org/gnu/freedink/${freedink_data}.tar.gz ${freedink_data}.tar.gz 715f44773b05b73a9ec9b62b0e152f3f281be1a1512fbaaa386176da94cffb9d
|
||||
https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
|
||||
auth_type="sig"
|
||||
auth_opts=("--keyring" "./gnu-keyring.gpg" "freedink-${version}.tar.gz.sig")
|
||||
configopts=("--prefix=/usr/local" "--disable-rpath" "--disable-tests" "LDFLAGS=-ldl -lfontconfig -lxml2")
|
||||
|
||||
resource_path="/usr/local/share/games/dink"
|
||||
|
||||
launcher_name="FreeDink"
|
||||
launcher_category=Games
|
||||
launcher_command="/usr/local/bin/freedink --software-rendering --truecolor --refdir ${resource_path}"
|
||||
|
||||
install() {
|
||||
target_dir="${SERENITY_INSTALL_ROOT}${resource_path}"
|
||||
run_nocd mkdir -p ${target_dir}
|
||||
run_nocd tar zxvf ${freedink_data}.tar.gz
|
||||
run_nocd cp -R ${freedink_data}/* ${target_dir}
|
||||
}
|
||||
|
||||
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2 -I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
|
Loading…
Add table
Add a link
Reference in a new issue