40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'grafx2'
|
|
pkgname=grafx2
|
|
version=2.5
|
|
revision=1
|
|
_recoil_version=4.2.0
|
|
wrksrc="grafX2-v${version}"
|
|
build_wrksrc="src"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL_image-devel SDL_ttf-devel fontconfig-devel lua-devel"
|
|
depends="desktop-file-utils"
|
|
short_desc="Bitmap/pixel drawing program like Deluxe Paint"
|
|
maintainer="allan <mail@may.mooo.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://grafx2.chez.com/"
|
|
#changelog="http://grafx2.chez.com/index.php?article9/2010s"
|
|
distfiles="https://gitlab.com/GrafX2/grafX2/-/archive/v${version}/grafX2-v${version}.tar.gz
|
|
https://sourceforge.net/projects/recoil/files/recoil/${_recoil_version}/recoil-${_recoil_version}.tar.gz"
|
|
checksum="5ae1ee5ff34eab3955d140ca02a00808c730cd0848ed39b2f0c5592df0a23684
|
|
4e8c8e3048b143654da49cc1187a0b26679c9f97f841edc0ba9e0b2e2e7f18e5"
|
|
|
|
post_extract() {
|
|
mv ../recoil-${_recoil_version} 3rdparty/
|
|
touch 3rdparty/recoil-${_recoil_version}/.ok
|
|
}
|
|
|
|
pre_build() {
|
|
# musl __sighandler_t fix
|
|
sed -i 's/defined(__macosx__)/!defined(__GLIBC__)/' init.c
|
|
}
|
|
|
|
do_install() {
|
|
vbin ../bin/grafx2
|
|
vman ../misc/unix/grafx2.1
|
|
vinstall ../misc/unix/grafx2.desktop 644 usr/share/applications
|
|
vinstall ../misc/unix/grafx2.xpm 644 usr/share/pixmaps
|
|
vinstall ../share/icons/grafx2.svg 644 usr/share/icons
|
|
vcopy ../share/grafx2 usr/share
|
|
}
|