diff --git a/ruby-liquid/.SRCINFO b/ruby-liquid/.SRCINFO new file mode 100644 index 0000000..2fdd04b --- /dev/null +++ b/ruby-liquid/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ruby-liquid + pkgdesc = Liquid markup language. Safe, customer facing template language for flexible web apps + pkgver = 4.0.3 + pkgrel = 1 + url = https://shopify.github.io/liquid/ + arch = any + license = MIT + makedepends = ruby-rdoc + depends = ruby + options = !emptydirs + 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/ruby-liquid/PKGBUILD b/ruby-liquid/PKGBUILD new file mode 100644 index 0000000..57b359d --- /dev/null +++ b/ruby-liquid/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Patrick Lühne + +_gemname=liquid +pkgname=ruby-$_gemname +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/' +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) +sha512sums=('5aed3b98fa486a00744e0225f7a3b8004be8ded1e3347f9118fd062684fe33b725b84d1f88bdd5e881399e6efa60b4aa32f57cf10f4583aa27ec8c8288b52bf9') + +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="$(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}" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +}