From b2ff282810ed901e106a2c39c5b315503a8209d3 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 4 Jan 2021 20:42:38 +1100 Subject: [PATCH 1/2] foomatic-db: update to 20210104. --- srcpkgs/foomatic-db/template | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/srcpkgs/foomatic-db/template b/srcpkgs/foomatic-db/template index 58d267a42d6..0a486243178 100644 --- a/srcpkgs/foomatic-db/template +++ b/srcpkgs/foomatic-db/template @@ -1,23 +1,24 @@ # Template file for 'foomatic-db' -# Note: update the version= regularly like once/month. +# Update when there is a new commit at https://github.com/OpenPrinting/foomatic-db. pkgname=foomatic-db -version=20201129 +version=20210104 revision=1 -create_wrksrc=yes +_commit=28466ef2f9f931f49816ed70c499001d1783f5cb +wrksrc="${pkgname}-${_commit}" build_style=gnu-configure -hostmakedepends="xmlstarlet tar" +hostmakedepends="xmlstarlet tar automake" short_desc="OpenPrinting printer support - database" maintainer="Orphaned " license="GPL-2.0-or-later, MIT" homepage="https://wiki.linuxfoundation.org/openprinting/database/foomatic" +distfiles="https://github.com/OpenPrinting/foomatic-db/archive/${_commit}.tar.gz" +checksum=eb412f7967300ae49bd22a886ecd478767828eff5da4d1e875c3409898265866 -do_fetch() { - $XBPS_FETCH_CMD https://www.openprinting.org/download/foomatic/${pkgname}-4.0-current.tar.gz -} - -do_extract() { - bsdtar -xf ${XBPS_BUILDDIR}/${pkgname}-4.0-current.tar.gz \ - --strip-components=1 -C ${wrksrc} +pre_configure() { + # Taken from make_configure + aclocal + autoconf + sed -i "s=\#include \=\#include \=g" configure } post_install() { @@ -28,4 +29,4 @@ post_install() { vlicense "LICENSE-$(basename $i .xml).txt" fi done - } +} From ae8dde8222400b5a0f306efe4604f2d827206bd0 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 4 Jan 2021 20:42:51 +1100 Subject: [PATCH 2/2] foomatic-db-nonfree: update to 20210104. --- srcpkgs/foomatic-db-nonfree/template | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/srcpkgs/foomatic-db-nonfree/template b/srcpkgs/foomatic-db-nonfree/template index d6773c5443b..bc4ef4c5a0f 100644 --- a/srcpkgs/foomatic-db-nonfree/template +++ b/srcpkgs/foomatic-db-nonfree/template @@ -1,24 +1,25 @@ # Template file for 'foomatic-db-nonfree' -# Note: update the version= regularly like once/month. +# Update when there is a new commit at https://github.com/OpenPrinting/foomatic-db-nonfree. pkgname=foomatic-db-nonfree -version=20201129 +version=20210104 revision=1 -create_wrksrc=yes +_commit=6ddae02ac89240c019f8b5026cfe70e30fd2b3db +wrksrc="${pkgname}-${_commit}" build_style=gnu-configure -hostmakedepends="tar xmlstarlet" +hostmakedepends="tar xmlstarlet automake" short_desc="OpenPrinting printer support - nonfree database" maintainer="fosslinux " license="custom:Various Nonfree" homepage="https://wiki.linuxfoundation.org/openprinting/database/foomatic" +distfiles="https://github.com/OpenPrinting/foomatic-db-nonfree/archive/${_commit}.tar.gz" +checksum=958c1067a24c37cb753ee2b4aeb9e8325629f4363ce9e108f1f6d0f828e5b7c5 repository="nonfree" -do_fetch() { - $XBPS_FETCH_CMD https://www.openprinting.org/download/foomatic/${pkgname}-current.tar.gz -} - -do_extract() { - bsdtar -xf ${XBPS_BUILDDIR}/${pkgname}-current.tar.gz \ - --strip-components=1 -C ${wrksrc} +pre_configure() { + # From make_configure + aclocal + autoconf + sed -i "s=\#include \=\#include \=g" configure } post_install() {