Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] foomatic-db{,-nonfree}: update to 20210104. 
@ 2021-01-04  9:43 fosslinux
  2021-01-04 12:44 ` ericonr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fosslinux @ 2021-01-04  9:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

There is a new pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages foomatic-db-update
https://github.com/void-linux/void-packages/pull/27651

foomatic-db{,-nonfree}: update to 20210104. 
These two packages are essentially non-versioned databases but need to be bumped every so often.

A patch file from https://github.com/void-linux/void-packages/pull/27651.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-foomatic-db-update-27651.patch --]
[-- Type: text/x-diff, Size: 1471 bytes --]

From fbd6d9a6d4a3b2a78b85ea9bbd4ab369c5a8cad4 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 4 Jan 2021 20:42:38 +1100
Subject: [PATCH 1/2] foomatic-db: update to 20210104.

---
 srcpkgs/foomatic-db/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/foomatic-db/template b/srcpkgs/foomatic-db/template
index 58d267a42d6..a7266a8b967 100644
--- a/srcpkgs/foomatic-db/template
+++ b/srcpkgs/foomatic-db/template
@@ -1,7 +1,7 @@
 # Template file for 'foomatic-db'
 # Note: update the version=<date> regularly like once/month.
 pkgname=foomatic-db
-version=20201129
+version=20200104
 revision=1
 create_wrksrc=yes
 build_style=gnu-configure

From b07505ed0768ea426ccc316ad5360fd17e8ad9fd Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 4 Jan 2021 20:42:51 +1100
Subject: [PATCH 2/2] foomatic-db-nonfree: update to 20210104.

---
 srcpkgs/foomatic-db-nonfree/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/foomatic-db-nonfree/template b/srcpkgs/foomatic-db-nonfree/template
index d6773c5443b..9e146ea5259 100644
--- a/srcpkgs/foomatic-db-nonfree/template
+++ b/srcpkgs/foomatic-db-nonfree/template
@@ -1,7 +1,7 @@
 # Template file for 'foomatic-db-nonfree'
 # Note: update the version=<date> regularly like once/month.
 pkgname=foomatic-db-nonfree
-version=20201129
+version=20210104
 revision=1
 create_wrksrc=yes
 build_style=gnu-configure

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
@ 2021-01-04 12:44 ` ericonr
  2021-01-04 20:15 ` Chocimier
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ericonr @ 2021-01-04 12:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/27651#issuecomment-753954818

Comment:
Can we switch to pulling a specific commit from git? https://github.com/archlinux/svntogit-packages/blob/packages/foomatic-db/trunk/PKGBUILD



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
  2021-01-04 12:44 ` ericonr
@ 2021-01-04 20:15 ` Chocimier
  2021-01-04 21:06 ` Anachron
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Chocimier @ 2021-01-04 20:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/27651#issuecomment-754193266

Comment:
Updates can be detected each month with 

    site="https://www.openprinting.org/download/foomatic/"
    pattern=$pkgname'-[\d.]+-\K[\d]+'
    ignore="${version:0:6}*"

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
  2021-01-04 12:44 ` ericonr
  2021-01-04 20:15 ` Chocimier
@ 2021-01-04 21:06 ` Anachron
  2021-01-06  8:26 ` [PR PATCH] [Updated] " fosslinux
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2021-01-04 21:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/27651#issuecomment-754218811

Comment:
foomatic-db template version has a typo in the year.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
                   ` (2 preceding siblings ...)
  2021-01-04 21:06 ` Anachron
@ 2021-01-06  8:26 ` fosslinux
  2021-01-06  8:32 ` fosslinux
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: fosslinux @ 2021-01-06  8:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

There is an updated pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages foomatic-db-update
https://github.com/void-linux/void-packages/pull/27651

foomatic-db{,-nonfree}: update to 20210104. 
These two packages are essentially non-versioned databases but need to be bumped every so often.

A patch file from https://github.com/void-linux/void-packages/pull/27651.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-foomatic-db-update-27651.patch --]
[-- Type: text/x-diff, Size: 3615 bytes --]

From b2ff282810ed901e106a2c39c5b315503a8209d3 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
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=<date> 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 <orphan@voidlinux.org>"
 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 \<xmlversion.h\>=\#include \<libxml/xmlversion.h\>=g" configure
 }
 
 post_install() {
@@ -28,4 +29,4 @@ post_install() {
 			vlicense "LICENSE-$(basename $i .xml).txt"
 		fi
 	done
- }
+}

From 789b2a9e6cb0a51557dbd4ab545c5bc2e0aeaaa1 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 4 Jan 2021 20:42:51 +1100
Subject: [PATCH 2/2] foomatic-db-nonfree: update to 20210104.

---
 srcpkgs/foomatic-db-nonfree/template | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/srcpkgs/foomatic-db-nonfree/template b/srcpkgs/foomatic-db-nonfree/template
index d6773c5443b..cf0ee5a9229 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=<date> regularly like once/month.
 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 <fosslinux@aussies.space>"
 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 \<xmlversion.h\>=\#include \<libxml/xmlversion.h\>=g" configure
 }
 
 post_install() {

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
                   ` (3 preceding siblings ...)
  2021-01-06  8:26 ` [PR PATCH] [Updated] " fosslinux
@ 2021-01-06  8:32 ` fosslinux
  2021-01-06  8:33 ` fosslinux
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: fosslinux @ 2021-01-06  8:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

There is an updated pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages foomatic-db-update
https://github.com/void-linux/void-packages/pull/27651

foomatic-db{,-nonfree}: update to 20210104. 
These two packages are essentially non-versioned databases but need to be bumped every so often.

A patch file from https://github.com/void-linux/void-packages/pull/27651.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-foomatic-db-update-27651.patch --]
[-- Type: text/x-diff, Size: 3710 bytes --]

From b2ff282810ed901e106a2c39c5b315503a8209d3 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
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=<date> 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 <orphan@voidlinux.org>"
 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 \<xmlversion.h\>=\#include \<libxml/xmlversion.h\>=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 <fosslinux@aussies.space>
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=<date> 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 <fosslinux@aussies.space>"
 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 \<xmlversion.h\>=\#include \<libxml/xmlversion.h\>=g" configure
 }
 
 post_install() {

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
                   ` (4 preceding siblings ...)
  2021-01-06  8:32 ` fosslinux
@ 2021-01-06  8:33 ` fosslinux
  2021-01-11 23:09 ` Chocimier
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: fosslinux @ 2021-01-06  8:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/27651#issuecomment-755162043

Comment:
@ericonr complete.
@Chocimier insufficient for the new git-based check which is what really should occur, but i did not have luck making a regex for github... any tricks?
@Anachron thanks

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
                   ` (5 preceding siblings ...)
  2021-01-06  8:33 ` fosslinux
@ 2021-01-11 23:09 ` Chocimier
  2021-01-12  1:09 ` [PR PATCH] [Updated] " fosslinux
  2021-01-18 21:28 ` [PR PATCH] [Merged]: " Chocimier
  8 siblings, 0 replies; 10+ messages in thread
From: Chocimier @ 2021-01-11 23:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/27651#issuecomment-758281899

Comment:
Something like that maybe. 

    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}"

We usually use date of commit as version, but 2021 is fine here, to avoid going back.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
                   ` (6 preceding siblings ...)
  2021-01-11 23:09 ` Chocimier
@ 2021-01-12  1:09 ` fosslinux
  2021-01-18 21:28 ` [PR PATCH] [Merged]: " Chocimier
  8 siblings, 0 replies; 10+ messages in thread
From: fosslinux @ 2021-01-12  1:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

There is an updated pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages foomatic-db-update
https://github.com/void-linux/void-packages/pull/27651

foomatic-db{,-nonfree}: update to 20210104. 
These two packages are essentially non-versioned databases but need to be bumped every so often.

A patch file from https://github.com/void-linux/void-packages/pull/27651.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-foomatic-db-update-27651.patch --]
[-- Type: text/x-diff, Size: 4620 bytes --]

From 61b2f3583cbffc2aa200a3c4c1013b2dcc956042 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
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=<date> 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 <orphan@voidlinux.org>"
 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 \<xmlversion.h\>=\#include \<libxml/xmlversion.h\>=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 <fosslinux@aussies.space>
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=<date> 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 <fosslinux@aussies.space>"
 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 \<xmlversion.h\>=\#include \<libxml/xmlversion.h\>=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}"

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Merged]: foomatic-db{,-nonfree}: update to 20210104. 
  2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
                   ` (7 preceding siblings ...)
  2021-01-12  1:09 ` [PR PATCH] [Updated] " fosslinux
@ 2021-01-18 21:28 ` Chocimier
  8 siblings, 0 replies; 10+ messages in thread
From: Chocimier @ 2021-01-18 21:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

There's a merged pull request on the void-packages repository

foomatic-db{,-nonfree}: update to 20210104. 
https://github.com/void-linux/void-packages/pull/27651

Description:
These two packages are essentially non-versioned databases but need to be bumped every so often.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-18 21:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04  9:43 [PR PATCH] foomatic-db{,-nonfree}: update to 20210104 fosslinux
2021-01-04 12:44 ` ericonr
2021-01-04 20:15 ` Chocimier
2021-01-04 21:06 ` Anachron
2021-01-06  8:26 ` [PR PATCH] [Updated] " fosslinux
2021-01-06  8:32 ` fosslinux
2021-01-06  8:33 ` fosslinux
2021-01-11 23:09 ` Chocimier
2021-01-12  1:09 ` [PR PATCH] [Updated] " fosslinux
2021-01-18 21:28 ` [PR PATCH] [Merged]: " Chocimier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).