594e67ca1f
The former distfile is gone and upstream did not yet make a release. Fix to produce host tools for table generation when cross compiling.
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'fribidi'
|
|
pkgname=fribidi
|
|
version=0.19.7.20171205
|
|
revision=1
|
|
_c2man_version=2.41
|
|
_gitrev=0efbaa9052320a951823a6e776b30a580e3a2b4e
|
|
wrksrc=fribidi-${_gitrev}
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libglib-devel"
|
|
short_desc="Free Implementation of the Unicode Bidirectional Algorithm"
|
|
homepage="http://fribidi.org/"
|
|
license="LGPL-2.1"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
distfiles="https://github.com/fribidi/fribidi/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=3bc7b61bbe1194828159feb5d3151cca9647d102f13b84e320cf040640ba2449
|
|
disable_parallel_build=yes
|
|
|
|
pre_configure() {
|
|
mkdir -p m4
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
}
|
|
|
|
pre_build() {
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
sed -i gen.tab/Makefile \
|
|
-e "s;^\(CC =\) .*;\1 cc;" \
|
|
-e "s;^\(CFLAGS =\) .*;\1 -O2 -pipe;" \
|
|
-e "s;^\(LDFLAGS =\) .*;\1 -s;"
|
|
fi
|
|
}
|
|
|
|
fribidi-devel_package() {
|
|
depends="${makedepends} fribidi>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|