void-packages/srcpkgs/fribidi/template

34 lines
988 B
Bash

# Template file for 'fribidi'
pkgname=fribidi
version=1.0.14
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
short_desc="Free Implementation of the Unicode Bidirectional Algorithm"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/fribidi/fribidi/"
changelog="https://raw.githubusercontent.com/fribidi/fribidi/master/NEWS"
distfiles="https://github.com/fribidi/fribidi/releases/download/v${version}/fribidi-${version}.tar.xz"
checksum=76ae204a7027652ac3981b9fa5817c083ba23114340284c58e756b259cd2259a
pre_build() {
if [ "$CROSS_BUILD" ]; then
vsed -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="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}