void-packages/srcpkgs/recode/template

41 lines
1.1 KiB
Bash

# Template file for 'recode'
pkgname=recode
version=3.6
revision=10
build_style=gnu-configure
configure_args="--without-included-gettext jm_cv_func_working_malloc=yes
jm_cv_func_working_realloc=yes"
hostmakedepends="automake gettext libtool texinfo"
short_desc="Character set conversion utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://recode.progiciels-bpi.ca/"
distfiles="${DEBIAN_SITE}/main/r/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf
pre_configure() {
vsed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
vsed -i -e "/^AM_C_PROTOTYPES.*/d" configure.in
vsed -i -e "s/ansi2knr//" src/Makefile.am
rm acinclude.m4
autoreconf -fi
libtoolize
}
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/*.a"
vmove "usr/lib/*.so"
}
}