summaryrefslogtreecommitdiff
path: root/community/ruby-iconv/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-iconv/PKGBUILD')
-rwxr-xr-xcommunity/ruby-iconv/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/ruby-iconv/PKGBUILD b/community/ruby-iconv/PKGBUILD
new file mode 100755
index 000000000..d2b60d9ac
--- /dev/null
+++ b/community/ruby-iconv/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 89242 2013-04-28 10:01:07Z alucryd $
+# Maintainer: Alucryd <alucryd at gmail dot com>
+
+pkgname=ruby-iconv
+pkgver=1.0.3
+pkgrel=2
+pkgdesc="Wrapper library for iconv"
+arch=('i686' 'x86_64')
+url="https://github.com/nurse/iconv"
+license=('GPL3')
+depends=('ruby')
+makedepends=('rubygems')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+sha256sums=('94a9b62a56c96226b62b787cd45fdc48c03f4517f1e36e64db113b010fb012da')
+
+package() {
+ cd "${srcdir}"
+
+ local _gemdir="$(ruby -rubygems -e 'puts Gem.default_dir')"
+ gem install --no-user-install --ignore-dependencies -i "${pkgdir}"${_gemdir} ${pkgname#*-}-${pkgver}.gem
+}
+
+# vim: ts=2 sw=2 et: