sane: update to 1.0.24.

This commit is contained in:
Juan RP 2014-04-23 14:34:24 +02:00
parent 42b284032b
commit d4e408adc6

View File

@ -1,13 +1,14 @@
# Template build file for 'sane'.
pkgname=sane
version=1.0.23
revision=3
version=1.0.24
revision=1
wrksrc="sane-backends-${version}"
build_style=gnu-configure
configure_args="--disable-locking --enable-avahi --with-docdir=/usr/share/doc/sane
--disable-latex --enable-libusb_1_0 --enable-pthread"
makedepends="pkg-config avahi-libs-devel libjpeg-turbo-devel tiff-devel libgphoto2-devel
v4l-utils-devel libusb-devel net-snmp-devel libieee1284-devel"
configure_args="--disable-locking --enable-avahi --disable-latex --enable-ipv6
--with-docdir=/usr/share/doc/sane --enable-libusb_1_0 --enable-pthread"
hostmakedepends="pkg-config"
makedepends="avahi-libs-devel libjpeg-turbo-devel tiff-devel libgphoto2-devel
v4l-utils-devel libusb-devel net-snmp-devel libieee1284-devel openssl-devel"
depends="net-snmp"
systemd_services="saned.socket on"
conf_files="
@ -92,40 +93,38 @@ short_desc="Scanner Access Now Easy"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.sane-project.org/"
license="GPL-2"
#distfiles="http://distfiles.bsdfrog.org/sane-backends-${version}.tar.gz"
distfiles="ftp://ftp.archlinux.org/other/sane/sane-backends-${version}.tar.gz"
checksum=4d4f5b2881615af7fc0ed75fdde7dc623a749e80e40f3f792fe4010163cbb029
distfiles="http://ftp.lfs-matrix.net/pub/blfs/conglomeration/sane-backends/sane-backends-${version}.tar.gz"
checksum=27c7085a54f1505d8b551e6f1e69d30e1ee57328b18429bb2225dabf4c45462d
post_install() {
# fix hp officejets
echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf
# install udev files
vinstall tools/udev/libsane.rules 644 usr/lib/udev/rules.d 53-sane.rules
vinstall tools/udev/libsane.rules 644 usr/lib/udev/rules.d 49-sane.rules
# fix udev rules
sed -i 's|NAME="%k", ||g' ${DESTDIR}/usr/lib/udev/rules.d/53-sane.rules
sed -i 's|NAME="%k", ||g' ${DESTDIR}/usr/lib/udev/rules.d/49-sane.rules
# Install systemd service.
vinstall ${FILESDIR}/saned@.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/saned.socket 644 usr/lib/systemd/system
cd ${DESTDIR}/usr/lib
ln -sf libsane.so.1 libsane.so
vinstall ${wrksrc}/tools/sane-backends.pc 644 usr/lib/pkgconfig
}
libsane_package() {
short_desc+=" - runtime shared library"
pkg_install() {
vmove "usr/lib/libsane.so*"
vmove "usr/lib/libsane.so.*"
}
}
sane-devel_package() {
depends="libsane>=${version}"
depends="libsane>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin/sane-config
vmove usr/share/man/man1/sane-config.1
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}