65 lines
1.9 KiB
Bash
65 lines
1.9 KiB
Bash
# Template file for 'gimp'
|
|
pkgname=gimp
|
|
version=2.10.18
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
|
|
libtool pkg-config pygtk-devel perl-XML-Parser gtk-doc iso-codes"
|
|
makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
|
|
ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
|
|
libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
|
|
libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
|
|
poppler-glib-devel pygtk-devel glib-networking libwebp-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
|
|
short_desc="GNU image manipulation program"
|
|
conf_files="/etc/gimp/2.0/*"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://www.gimp.org"
|
|
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
|
|
checksum=65bfe111e8eebffd3dde3016ccb507f9948d2663d9497cb438d9bb609e11d716
|
|
lib32disabled=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*) nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/24795/steps/shell_3/logs/stdio" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i 's:^py_prefix=`:py_prefix='"$XBPS_CROSS_BASE"'`:' configure
|
|
fi
|
|
}
|
|
|
|
libgimp_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
|
|
gimp-devel_package() {
|
|
depends="gegl-devel gtk+-devel lcms2-devel libgimp>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/gtk-doc
|
|
vmove usr/share/aclocal
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
gimp-python_package() {
|
|
lib32disabled=yes
|
|
depends="pygtk"
|
|
pycompile_dirs="usr/lib/gimp/2.0"
|
|
short_desc+=" - Python2 bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/gimp/2.0/python
|
|
for file in $(find ${DESTDIR}/usr/lib/gimp/2.0/plug-ins -name *.py); do
|
|
vmove ${file/$DESTDIR/}
|
|
done
|
|
}
|
|
}
|