diff --git a/srcpkgs/foomatic-db-nonfree/template b/srcpkgs/foomatic-db-nonfree/template index d6773c5443..bc4ef4c5a0 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 0000000000..751988f2c0 --- /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}"