foomatic-db: various changes, update to 20201129.
- Bump (hasn't been bumped for 2 years!) - 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
b0302a32aa
commit
341b9260e8
1 changed files with 18 additions and 8 deletions
|
@ -1,21 +1,31 @@
|
||||||
# Template file for 'foomatic-db'
|
# Template file for 'foomatic-db'
|
||||||
# Note: update the version=<date> regularly like once/month.
|
# Note: update the version=<date> regularly like once/month.
|
||||||
pkgname=foomatic-db
|
pkgname=foomatic-db
|
||||||
version=20180118
|
version=20201129
|
||||||
revision=1
|
revision=1
|
||||||
archs=noarch
|
create_wrksrc=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
ceeate_wrksrc=yes
|
hostmakedepends="xmlstarlet tar"
|
||||||
hostmakedepends="tar"
|
|
||||||
short_desc="OpenPrinting printer support - database"
|
short_desc="OpenPrinting printer support - database"
|
||||||
homepage="https://wiki.linuxfoundation.org/openprinting/database/foomatic"
|
|
||||||
license="GPL-2, MIT"
|
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
license="GPL-2.0-or-later, MIT"
|
||||||
|
homepage="https://wiki.linuxfoundation.org/openprinting/database/foomatic"
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
$XBPS_FETCH_CMD https://www.openprinting.org/download/foomatic/$pkgname-4.0-current.tar.gz
|
$XBPS_FETCH_CMD https://www.openprinting.org/download/foomatic/${pkgname}-4.0-current.tar.gz
|
||||||
}
|
}
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
tar xf ${XBPS_BUILDDIR}/${pkgname}-4.0-current.tar.gz \
|
bsdtar -xf ${XBPS_BUILDDIR}/${pkgname}-4.0-current.tar.gz \
|
||||||
--strip-components=1 -C ${wrksrc}
|
--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
Add a link
Reference in a new issue