summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Przybyś2020-03-12 16:35:28 +0100
committerMichał Przybyś2020-03-12 16:35:28 +0100
commit1f520556450924fe337bbda0bf50d035a83f854b (patch)
tree8c960743a17be00d757cd2f6db293cbb562461af
downloadaur-1f520556450924fe337bbda0bf50d035a83f854b.tar.gz
Initial commit
* Created PKGBUILD.
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD21
3 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ba9ed4558f1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ruby-jekyll-theme-leap-day
+ pkgdesc = Leap Day is a Jekyll theme for GitHub Pages
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/pages-themes/leap-day
+ arch = any
+ license = CC0
+ depends = ruby
+ depends = jekyll
+ noextract = jekyll-theme-leap-day-0.1.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/jekyll-theme-leap-day-0.1.1.gem
+ sha1sums = 68eac35495c0a0fd6ed11f28d8309aaa16d4bf65
+
+pkgname = ruby-jekyll-theme-leap-day
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6269e5d5971
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.gem
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f70312b5b14
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Michał Przybyś <michal@przybys.eu>
+_gemname=jekyll-theme-leap-day
+pkgname="ruby-${_gemname}"
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='Leap Day is a Jekyll theme for GitHub Pages'
+arch=(any)
+url='https://github.com/pages-themes/leap-day'
+license=(CC0)
+depends=(ruby
+ jekyll)
+options=(!emptydirs)
+source=("https://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
+noextract=("${_gemname}-${pkgver}.gem")
+sha1sums=(68eac35495c0a0fd6ed11f28d8309aaa16d4bf65)
+
+package() {
+ 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"
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}