Files
horizon-packages/srcpkgs/fribidi/template
T
2025-05-12 23:26:48 +02:00

34 lines
988 B
Bash

# Template file for 'fribidi'
pkgname=fribidi
version=1.0.16
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=1b1cde5b235d40479e91be2f0e88a309e3214c8ab470ec8a2744d82a5a9ea05c
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
}
}