pcsc-acsccid: use vinstall; install docs to /usr/share/doc.

This commit is contained in:
Juan RP 2014-05-20 07:46:30 +02:00
parent 24bf0d17a2
commit 6bf0634bcd

View file

@ -1,8 +1,7 @@
# Template file for 'pcsc-acsccid' # Template file for 'pcsc-acsccid'
pkgname=pcsc-acsccid pkgname=pcsc-acsccid
_origname=acsccid
version=1.0.6 version=1.0.6
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>" maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://acsccid.sourceforge.net" homepage="http://acsccid.sourceforge.net"
@ -12,15 +11,12 @@ configure_args="--enable-udev"
hostmakedepends="pkg-config flex perl" hostmakedepends="pkg-config flex perl"
makedepends="pcsclite-devel libudev-devel libusb-compat-devel" makedepends="pcsclite-devel libudev-devel libusb-compat-devel"
depends="pcsclite" depends="pcsclite"
distfiles="${SOURCEFORGE_SITE}/${_origname}/${_origname}-${version}.tar.bz2" distfiles="${SOURCEFORGE_SITE}/${pkgname/pcsc-/}/${pkgname/pcsc-/}-${version}.tar.bz2"
checksum="6079b87228ac2411cce2ee1111db12cb08e3d774b8f3cfd38ed6e5d27071387e" checksum="6079b87228ac2411cce2ee1111db12cb08e3d774b8f3cfd38ed6e5d27071387e"
wrksrc=${_origname}-${version} wrksrc=${pkgname/pcsc-/}-${version}
do_install(){ post_install() {
make DESTDIR=${DESTDIR} install vinstall src/92_pcscd_acsccid.rules 644 usr/lib/udev/rules.d/
mkdir -p ${DESTDIR}/usr/share/${pkgname} vinstall src/supported_readers.txt 644 usr/share/doc/${pkgname}
mkdir -p ${DESTDIR}/usr/lib/udev/rules.d vinstall README 644 usr/share/doc/${pkgname}
cp ${wrksrc}/src/92_pcscd_acsccid.rules ${DESTDIR}/usr/lib/udev/rules.d/
cp ${wrksrc}/src/supported_readers.txt ${DESTDIR}/usr/share/${pkgname}
cp ${wrksrc}/README ${DESTDIR}/usr/share/${pkgname}
} }