mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-10 20:45:10 +02:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Template file for 'recode'
|
|
pkgname=recode
|
|
version=3.7.15
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-shared --disable-static"
|
|
hostmakedepends="automake gettext-devel libtool libltdl-devel texinfo python3
|
|
libiconv-utils"
|
|
makedepends="libiconv-devel"
|
|
checkdepends="python3-Cython python3-devel"
|
|
short_desc="Character set conversion utility"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/rrthomas/Recode"
|
|
distfiles="https://github.com/rrthomas/recode/releases/download/v${version}/recode-${version}.tar.gz"
|
|
checksum=f590407fc51badb351973fc1333ee33111f05ec83a8f954fd8cf0c5e30439806
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libiconv"
|
|
LDFLAGS="-liconv"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
libtoolize
|
|
|
|
# Remove libc specific iconv name list
|
|
vsed -e "s/os.popen('iconv/os.popen('gnu-iconv/g" -i tables.py
|
|
rm src/iconvdecl.h
|
|
|
|
# Disable using pipe strategy, fork casues issues with buffered outputs
|
|
# https://github.com/rrthomas/recode/issues/67
|
|
vsed -e "s/HAVE_PIPE/0/g" -i src/task.c
|
|
}
|
|
|
|
librecode_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
recode-devel_package() {
|
|
depends="librecode>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|