From 6afa6c782e41e3509f5ce3901c96bacc73310f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Wed, 11 Oct 2017 00:24:41 +0200 Subject: [PATCH 1/8] Initial commit as of ruby-liquid 4.0.0. --- .SRCINFO | 13 +++++++++++++ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..6a50440 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = ruby-liquid + pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps. + pkgver = 4.0.0 + pkgrel = 1 + url = https://shopify.github.io/liquid/ + arch = any + license = MIT + depends = ruby + options = !emptydirs + source = ruby-liquid-4.0.0.tar.gz::https://github.com/Shopify/liquid/archive/v4.0.0.tar.gz + sha512sums = 3aa09813e2c6c3b75b9ab0eb1c11ae83f62e6d3dba19c91d8877bf8162edf867b06fbbc4fc3193116313ff98c1fa964b8a01f0cf58c9fb7ed89338f3bffb9cdb + +pkgname = ruby-liquid diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..8447300 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Patrick Lühne + +_gemname=liquid +pkgname=ruby-$_gemname +pkgver=4.0.0 +pkgrel=1 +pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps.' +url='https://shopify.github.io/liquid/' +arch=('any') +license=('MIT') +depends=('ruby') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Shopify/${_gemname}/archive/v${pkgver}.tar.gz) +sha512sums=('3aa09813e2c6c3b75b9ab0eb1c11ae83f62e6d3dba19c91d8877bf8162edf867b06fbbc4fc3193116313ff98c1fa964b8a01f0cf58c9fb7ed89338f3bffb9cdb') + +prepare() { + cd ${_gemname}-${pkgver} + sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla + sed 's|git ls-files -z|find -type f -print0\|sed "s,\\\\./,,g"|' -i ${_gemname}.gemspec +} + +build() { + cd ${_gemname}-${pkgver} + gem build ${_gemname}.gemspec +} + +package() { + cd ${_gemname}-${pkgver} + local _gemdir="$(gem env gemdir)" + gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +} From fdba53b28948cbd7139698750f82a693c7a0552b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Mon, 20 Nov 2017 18:26:31 +0100 Subject: [PATCH 2/8] Fix Ruby environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With “$(gem env gemdir)”, users reported that the gem was installed in their home directory and not the default gem directory. This fixes that by using the default gem installation directory instead. --- .SRCINFO | 3 ++- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 6a50440..fd264c1 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = ruby-liquid pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps. pkgver = 4.0.0 - pkgrel = 1 + pkgrel = 2 url = https://shopify.github.io/liquid/ arch = any license = MIT @@ -11,3 +11,4 @@ pkgbase = ruby-liquid sha512sums = 3aa09813e2c6c3b75b9ab0eb1c11ae83f62e6d3dba19c91d8877bf8162edf867b06fbbc4fc3193116313ff98c1fa964b8a01f0cf58c9fb7ed89338f3bffb9cdb pkgname = ruby-liquid + diff --git a/PKGBUILD b/PKGBUILD index 8447300..c61b367 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ _gemname=liquid pkgname=ruby-$_gemname pkgver=4.0.0 -pkgrel=1 +pkgrel=2 pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps.' url='https://shopify.github.io/liquid/' arch=('any') @@ -26,7 +26,7 @@ build() { package() { cd ${_gemname}-${pkgver} - local _gemdir="$(gem env gemdir)" + local _gemdir="$(ruby -e'puts Gem.default_dir')" gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" From 13c656a7780f2e59057655edbe11d6f4fa8743af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Mon, 20 Nov 2017 20:31:24 +0100 Subject: [PATCH 3/8] Remove trailing period in description This is to make this PKGBUILD consistent with the other ones in AUR. --- .SRCINFO | 2 +- PKGBUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index fd264c1..365c33a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,5 +1,5 @@ pkgbase = ruby-liquid - pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps. + pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps pkgver = 4.0.0 pkgrel = 2 url = https://shopify.github.io/liquid/ diff --git a/PKGBUILD b/PKGBUILD index c61b367..bd458a3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ _gemname=liquid pkgname=ruby-$_gemname pkgver=4.0.0 pkgrel=2 -pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps.' +pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps' url='https://shopify.github.io/liquid/' arch=('any') license=('MIT') From 8a37545084ff28d58381b7c08f1dd7a1271b66e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Mon, 8 Jan 2018 19:16:13 +0100 Subject: [PATCH 4/8] Trigger rebuild with Ruby 2.5 --- .SRCINFO | 2 +- PKGBUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 365c33a..64bf916 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = ruby-liquid pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps pkgver = 4.0.0 - pkgrel = 2 + pkgrel = 3 url = https://shopify.github.io/liquid/ arch = any license = MIT diff --git a/PKGBUILD b/PKGBUILD index bd458a3..ad15fd9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ _gemname=liquid pkgname=ruby-$_gemname pkgver=4.0.0 -pkgrel=2 +pkgrel=3 pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps' url='https://shopify.github.io/liquid/' arch=('any') From d7d686ae618464c79a905fbd9b41524bc9bfbf46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Thu, 23 Aug 2018 18:51:12 +0200 Subject: [PATCH 5/8] Add missing make dependency Recently, Ruby stopped shipping RDoc by default. For this reason, users without an explicit RDoc installation would face building issues with this PKGBUILD. To fix this, this commit adds the now missing ruby-rdoc make dependency. --- .SRCINFO | 3 ++- PKGBUILD | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 64bf916..2c0928f 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,10 +1,11 @@ pkgbase = ruby-liquid pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps pkgver = 4.0.0 - pkgrel = 3 + pkgrel = 4 url = https://shopify.github.io/liquid/ arch = any license = MIT + makedepends = ruby-rdoc depends = ruby options = !emptydirs source = ruby-liquid-4.0.0.tar.gz::https://github.com/Shopify/liquid/archive/v4.0.0.tar.gz diff --git a/PKGBUILD b/PKGBUILD index ad15fd9..e23b61a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,11 +3,12 @@ _gemname=liquid pkgname=ruby-$_gemname pkgver=4.0.0 -pkgrel=3 +pkgrel=4 pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps' url='https://shopify.github.io/liquid/' arch=('any') license=('MIT') +makedepends=('ruby-rdoc') depends=('ruby') options=('!emptydirs') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Shopify/${_gemname}/archive/v${pkgver}.tar.gz) From 29bc5a5b109d58cee04c21f85220157f07f17c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 27 Oct 2018 17:56:20 +0200 Subject: [PATCH 6/8] Update to Liquid 4.0.1 --- PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index e23b61a..a77c8e1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,8 +2,8 @@ _gemname=liquid pkgname=ruby-$_gemname -pkgver=4.0.0 -pkgrel=4 +pkgver=4.0.1 +pkgrel=1 pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps' url='https://shopify.github.io/liquid/' arch=('any') @@ -12,7 +12,7 @@ makedepends=('ruby-rdoc') depends=('ruby') options=('!emptydirs') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Shopify/${_gemname}/archive/v${pkgver}.tar.gz) -sha512sums=('3aa09813e2c6c3b75b9ab0eb1c11ae83f62e6d3dba19c91d8877bf8162edf867b06fbbc4fc3193116313ff98c1fa964b8a01f0cf58c9fb7ed89338f3bffb9cdb') +sha512sums=('6d8a792ea2fa5cd723e826dc9dd26be60179ab3405e9f74bc47a068b863aa0233e3a570faff65c19e669663c4f30201cb4144d2ab4ed23176d695c3d7f0553d0') prepare() { cd ${_gemname}-${pkgver} From 12739fdcb2c8ca7d73bd9a73198931d394e82ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 27 Oct 2018 17:57:07 +0200 Subject: [PATCH 7/8] Update .SRCINFO --- .SRCINFO | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 2c0928f..47ded15 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = ruby-liquid pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps - pkgver = 4.0.0 - pkgrel = 4 + pkgver = 4.0.1 + pkgrel = 1 url = https://shopify.github.io/liquid/ arch = any license = MIT makedepends = ruby-rdoc depends = ruby options = !emptydirs - source = ruby-liquid-4.0.0.tar.gz::https://github.com/Shopify/liquid/archive/v4.0.0.tar.gz - sha512sums = 3aa09813e2c6c3b75b9ab0eb1c11ae83f62e6d3dba19c91d8877bf8162edf867b06fbbc4fc3193116313ff98c1fa964b8a01f0cf58c9fb7ed89338f3bffb9cdb + source = ruby-liquid-4.0.1.tar.gz::https://github.com/Shopify/liquid/archive/v4.0.1.tar.gz + sha512sums = 6d8a792ea2fa5cd723e826dc9dd26be60179ab3405e9f74bc47a068b863aa0233e3a570faff65c19e669663c4f30201cb4144d2ab4ed23176d695c3d7f0553d0 pkgname = ruby-liquid From a535cc7055221945d74bc3550d5fe4d7ec013e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sat, 13 Apr 2019 12:07:30 +0200 Subject: [PATCH 8/8] Update to Liquid 4.0.3 --- .SRCINFO | 6 +++--- PKGBUILD | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 47ded15..2fdd04b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = ruby-liquid pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps - pkgver = 4.0.1 + pkgver = 4.0.3 pkgrel = 1 url = https://shopify.github.io/liquid/ arch = any @@ -8,8 +8,8 @@ pkgbase = ruby-liquid makedepends = ruby-rdoc depends = ruby options = !emptydirs - source = ruby-liquid-4.0.1.tar.gz::https://github.com/Shopify/liquid/archive/v4.0.1.tar.gz - sha512sums = 6d8a792ea2fa5cd723e826dc9dd26be60179ab3405e9f74bc47a068b863aa0233e3a570faff65c19e669663c4f30201cb4144d2ab4ed23176d695c3d7f0553d0 + source = ruby-liquid-4.0.3.tar.gz::https://github.com/Shopify/liquid/archive/v4.0.3.tar.gz + sha512sums = 5aed3b98fa486a00744e0225f7a3b8004be8ded1e3347f9118fd062684fe33b725b84d1f88bdd5e881399e6efa60b4aa32f57cf10f4583aa27ec8c8288b52bf9 pkgname = ruby-liquid diff --git a/PKGBUILD b/PKGBUILD index a77c8e1..57b359d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ _gemname=liquid pkgname=ruby-$_gemname -pkgver=4.0.1 +pkgver=4.0.3 pkgrel=1 pkgdesc='Liquid markup language. Safe, customer facing template language for flexible web apps' url='https://shopify.github.io/liquid/' @@ -12,7 +12,7 @@ makedepends=('ruby-rdoc') depends=('ruby') options=('!emptydirs') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Shopify/${_gemname}/archive/v${pkgver}.tar.gz) -sha512sums=('6d8a792ea2fa5cd723e826dc9dd26be60179ab3405e9f74bc47a068b863aa0233e3a570faff65c19e669663c4f30201cb4144d2ab4ed23176d695c3d7f0553d0') +sha512sums=('5aed3b98fa486a00744e0225f7a3b8004be8ded1e3347f9118fd062684fe33b725b84d1f88bdd5e881399e6efa60b4aa32f57cf10f4583aa27ec8c8288b52bf9') prepare() { cd ${_gemname}-${pkgver}