-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
33 lines (31 loc) · 988 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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
}
}