2010-12-13 23:33:54 +00:00
|
|
|
# Template file for 'enca'
|
|
|
|
pkgname=enca
|
2014-11-16 21:20:15 +00:00
|
|
|
version=1.16
|
2014-06-21 08:59:00 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-06-22 06:33:03 +00:00
|
|
|
configure_args="--enable-external --disable-static ac_cv_file__dev_random=yes
|
|
|
|
ac_cv_file__dev_urandom=yes ac_cv_file__dev_srandom=no
|
|
|
|
ac_cv_file__dev_arandom=no am_cv_func_iconv_works=yes libiconv_ok=yes"
|
|
|
|
hostmakedepends="pkg-config"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="recode-devel"
|
2013-01-07 10:45:58 +00:00
|
|
|
short_desc="Extremely Naive Charset Analyser and converter"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-01-07 10:45:58 +00:00
|
|
|
homepage="http://cihar.com/software/enca/"
|
|
|
|
license="GPL-2"
|
2014-11-16 21:20:15 +00:00
|
|
|
distfiles="http://dl.cihar.com/enca/enca-${version}.tar.xz"
|
|
|
|
checksum=7c1d785901b19ab78780cd4c87454e69864d45dc99da5164a2c654d5e87be741
|
2013-04-12 08:23:11 +00:00
|
|
|
|
2013-06-22 06:33:03 +00:00
|
|
|
pre_build() {
|
|
|
|
# make_hash must be built for the host.
|
|
|
|
cd tools
|
|
|
|
make CC=cc CFLAGS=-Os
|
|
|
|
}
|
|
|
|
|
2013-04-12 08:23:11 +00:00
|
|
|
libenca_package() {
|
2013-06-22 06:33:03 +00:00
|
|
|
short_desc+=" - shared library"
|
2013-04-12 08:23:11 +00:00
|
|
|
pkg_install() {
|
2013-06-22 06:33:03 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 08:23:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
enca-devel_package() {
|
2014-06-21 08:59:00 +00:00
|
|
|
depends="recode-devel libenca>=${version}_${revision}"
|
2013-06-22 06:33:03 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:23:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-06-22 06:33:03 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 08:23:11 +00:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|