diff options
author | dplusplus | 2021-10-13 04:05:44 -0700 |
---|---|---|
committer | dplusplus | 2021-10-13 04:05:44 -0700 |
commit | 84fd125d27013a164bec85198d3fc57657f0d7aa (patch) | |
tree | 4e72202309644e636775dfa59224386a02b8f280 | |
download | aur-ruby-gepub.tar.gz |
PKGBUILD and .SRCINFO for gepub 1.0.15
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d1e220851724 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ruby-gepub + pkgdesc = gepub is a generic EPUB parser/generator. Generates and parse EPUB2 and EPUB3 + pkgver = 1.0.15 + pkgrel = 1 + url = https://github.com/skoji/gepub + arch = x86_64 + license = BSD + depends = ruby + depends = ruby-nokogiri + depends = ruby-rubyzip + noextract = gepub-1.0.15.gem + options = !emptydirs + source = https://rubygems.org/downloads/gepub-1.0.15.gem + sha256sums = 1d6aec4637a71f85366563fa68f58db229bacc61930d231c0087b47f00f2d621 + +pkgname = ruby-gepub diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..31ea398bbd67 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: dplusdplus <echo cmFuZG9tdGVzdG5hbWUtYXQtZ21haWwoZG90KWNvbQo= | base64 -d> + +_gemname=gepub +pkgname="ruby-$_gemname" + +pkgver=1.0.15 +pkgrel=1 +pkgdesc="gepub is a generic EPUB parser/generator. Generates and parse EPUB2 and EPUB3" + +arch=( x86_64 ) +url="https://github.com/skoji/gepub" +license=( "BSD" ) +depends=( "ruby" +"ruby-nokogiri" +"ruby-rubyzip" +) + + +options=(!emptydirs) +source=( "https://rubygems.org/downloads/$_gemname-$pkgver.gem" ) +noextract=( "$_gemname-$pkgver.gem" ) +sha256sums=( "1d6aec4637a71f85366563fa68f58db229bacc61930d231c0087b47f00f2d621" ) + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" + + mkdir -p "$pkgdir/usr/share/licenses/$pkgname" + install "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname" +} |