void-packages/srcpkgs/xfce4-dev-tools/template

25 lines
843 B
Bash

# Template file for 'xfce4-dev-tools'
pkgname=xfce4-dev-tools
version=4.18.1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config libxslt"
makedepends="libglib-devel"
depends="automake libtool"
short_desc="Xfce developer tools"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://xfce.org/"
distfiles="https://archive.xfce.org/src/xfce/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=812cabe7048922ebc176564b73c3e427e467c9566365ee3e54c0487d305a7681
post_patch() {
[ "$CROSS_BUILD" ] || return 0
# For testing, which can't be run on cross build
vsed -i -e '/^\ttest-xdt-csource\t/d' tests/Makefile.am
vsed -i -e 's/^TESTS =.*/TESTS =/' \
-e 's/^check_PROGRAMS =.*/check_PROGRAMS =/' \
-e 's/\$.*xdt-csource --extern.*>/touch /' \
tests/Makefile.in
}