void-packages/srcpkgs/fribidi/template
maxice8 9129d900d8
fribidi: update to 1.0.4.
Closes #14957.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-06-14 12:33:09 +02:00

38 lines
1,004 B
Bash

# Template file for 'fribidi'
pkgname=fribidi
version=1.0.4
revision=1
build_style=gnu-configure
configure_args="--disable-docs"
hostmakedepends="automake libtool pkg-config"
short_desc="Free Implementation of the Unicode Bidirectional Algorithm"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="https://github.com/fribidi/fribidi/"
distfiles="https://github.com/fribidi/fribidi/archive/v${version}.tar.gz"
checksum=a8ea2bc423ba8918684648c4a0068b151ebac95cfe87f6ac1372e9b1feac8416
disable_parallel_build=yes
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
}
pre_build() {
if [ "$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="fribidi>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}