aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-unf-ext/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-05-29 08:57:29 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-05-29 09:01:18 +0000
commit10e9ccbfdc69e8caab1d3c781f81e03711daf40b (patch)
tree41037a2443c4fdbdeb97d46f0313af10d1aa1cee /testing/ruby-unf-ext/APKBUILD
parentd9bc668566ed7c262628eb81419ac4add865f104 (diff)
downloadaports-10e9ccbfdc69e8caab1d3c781f81e03711daf40b.tar.bz2
aports-10e9ccbfdc69e8caab1d3c781f81e03711daf40b.tar.xz
testing/ruby-unf-ext: new aport
Diffstat (limited to 'testing/ruby-unf-ext/APKBUILD')
-rw-r--r--testing/ruby-unf-ext/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-unf-ext/APKBUILD b/testing/ruby-unf-ext/APKBUILD
new file mode 100644
index 0000000000..3909edddde
--- /dev/null
+++ b/testing/ruby-unf-ext/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+
+_gemname=unf_ext
+pkgname=ruby-$_gemname
+pkgver=0.0.7.1
+pkgrel=0
+pkgdesc="Unicode Normalization Form support library for CRuby"
+arch="all"
+url="https://github.com/knu/ruby-unf_ext"
+license="MIT"
+depends="ruby"
+makedepends="ruby-dev"
+source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
+_builddir="$srcdir"/$_gemname-$pkgver
+
+build() {
+ mkdir -p "$_builddir" || return 1
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
+ --ignore-dependencies \
+ --verbose \
+ --no-rdoc \
+ --no-ri \
+ || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+# install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+md5sums="39bfbb9e124410f57a97d1837f02d42a unf_ext-0.0.7.1.gem"
+sha256sums="ab58d1a808d38872817bea89fc3f055bfc250af48d9653425e35c7c18caec253 unf_ext-0.0.7.1.gem"
+sha512sums="06239dc5870ad0f345266b12ad6ed9508ab731dfd37b450d0e1eae1ef8e8301f8ad1ef7fffbbcf69b56b0af5aa257ea279dda3a252bdf397d11949e9885db3d4 unf_ext-0.0.7.1.gem"