void-packages/srcpkgs/fribidi/template

34 lines
988 B
Bash

# Template file for 'fribidi'
pkgname=fribidi
version=1.0.13
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=7fa16c80c81bd622f7b198d31356da139cc318a63fc7761217af4130903f54a2
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
}
}