mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
foomatic-db-nonfree: various fixes, update to 20201129.
- Bump to new tarball. - Install the various different licenses (notably MIT, but some have exceptions and the like, so install them all). - Various other stylistic fixes.
This commit is contained in:
parent
341b9260e8
commit
04de89eb8b
1 changed files with 17 additions and 7 deletions
|
@ -1,22 +1,32 @@
|
|||
# Template file for 'foomatic-db-nonfree'
|
||||
# Note: update the version=<date> regularly like once/month.
|
||||
pkgname=foomatic-db-nonfree
|
||||
version=20200527
|
||||
version=20201129
|
||||
revision=1
|
||||
archs=noarch
|
||||
create_wrksrc=yes
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="tar"
|
||||
hostmakedepends="tar xmlstarlet"
|
||||
short_desc="OpenPrinting printer support - nonfree database"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="nonfree"
|
||||
maintainer="fosslinux <fosslinux@aussies.space>"
|
||||
license="custom:Various Nonfree"
|
||||
homepage="https://wiki.linuxfoundation.org/openprinting/database/foomatic"
|
||||
repository="nonfree"
|
||||
|
||||
do_fetch() {
|
||||
$XBPS_FETCH_CMD https://www.openprinting.org/download/foomatic/$pkgname-current.tar.gz
|
||||
$XBPS_FETCH_CMD https://www.openprinting.org/download/foomatic/${pkgname}-current.tar.gz
|
||||
}
|
||||
|
||||
do_extract() {
|
||||
tar xf ${XBPS_BUILDDIR}/${pkgname}-current.tar.gz \
|
||||
bsdtar -xf ${XBPS_BUILDDIR}/${pkgname}-current.tar.gz \
|
||||
--strip-components=1 -C ${wrksrc}
|
||||
}
|
||||
|
||||
post_install() {
|
||||
for i in db/source/driver/*.xml; do
|
||||
if grep -q licensetext $i; then
|
||||
xml sel -t -v '//driver/licensetext/en/text()' $i | sed "s/^ *//" \
|
||||
> "LICENSE-$(basename $i .xml).txt"
|
||||
vlicense "LICENSE-$(basename $i .xml).txt"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue