mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer : abveritas@chakra-project.org
|
|
# maintainer : Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=('ruby' 'ruby-docs')
|
|
pkgver=1.9.3_p194
|
|
_pkgver=1.9.3-p194
|
|
pkgrel=2
|
|
pkgdesc="An object-oriented language for quick and easy programming"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.ruby-lang.org/en/"
|
|
license=('custom')
|
|
makedepends=('gdbm' 'db' 'openssl' 'zlib' 'readline' 'tk' 'libffi'
|
|
'doxygen' 'graphviz' 'libyaml')
|
|
options=('!emptydirs')
|
|
source=("ftp://ftp.ruby-lang.org/pub/ruby/1.9/${pkgname}-${_pkgver}.tar.bz2")
|
|
md5sums=('2278eff4cfed3cbc0653bc73085caa34')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-shared \
|
|
--enable-pthread \
|
|
--disable-rpath
|
|
make
|
|
}
|
|
|
|
package_ruby()
|
|
{
|
|
depends=('gdbm' 'db' 'openssl' 'zlib' 'readline' 'libffi' 'libyaml')
|
|
provides=('rubygems' 'rake')
|
|
conflicts=('rubygems' 'rake')
|
|
optdepends=('tk: for Ruby/TK')
|
|
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
make DESTDIR="${pkgdir}" install-nodoc
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
}
|
|
|
|
package_ruby-docs()
|
|
{
|
|
pkgdesc="Documentation files for ruby"
|
|
#arch=('any')
|
|
depends=('ruby')
|
|
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
make -j1 DESTDIR="${pkgdir}" install-doc install-capi
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/ruby-docs/COPYING"
|
|
}
|