From 61b2f3583cbffc2aa200a3c4c1013b2dcc956042 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 +++++++++++++------------ srcpkgs/foomatic-db/update | 4 +++- 2 files changed, 16 insertions(+), 13 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 - } +} diff --git a/srcpkgs/foomatic-db/update b/srcpkgs/foomatic-db/update index 632ae769a2d..187d2fc1840 100644 --- a/srcpkgs/foomatic-db/update +++ b/srcpkgs/foomatic-db/update @@ -1 +1,3 @@ -pattern=$pkgname'-[\d.]+-\K[\d]+' +site="https://github.com/OpenPrinting/foomatic-db" +version="${version:0:4}.${version:4:2}.${version:6:2}" +pattern="relative-time datetime=\"\K\d{4}-\d{2}-\d{2}" From 043a5411a305273afb49f95e7ddf7797abd5ce48 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 ++++++++++++----------- srcpkgs/foomatic-db-nonfree/update | 3 +++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 srcpkgs/foomatic-db-nonfree/update 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() { diff --git a/srcpkgs/foomatic-db-nonfree/update b/srcpkgs/foomatic-db-nonfree/update new file mode 100644 index 00000000000..751988f2c00 --- /dev/null +++ b/srcpkgs/foomatic-db-nonfree/update @@ -0,0 +1,3 @@ +site="https://github.com/OpenPrinting/foomatic-db-nonfree" +version="${version:0:4}.${version:4:2}.${version:6:2}" +pattern="relative-time datetime=\"\K\d{4}-\d{2}-\d{2}"