1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 03:39:53 +03:00
aports/community/ruby-parse-cron/APKBUILD
2025-04-22 23:19:27 +02:00

45 lines
1.1 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-parse-cron
_gemname=parse-cron
pkgver=0.1.4
pkgrel=3
pkgdesc="Parse crontab syntax to determine scheduled run times"
url="https://github.com/siebertm/parse-cron"
arch="noarch"
license="MIT"
depends="ruby"
checkdepends="ruby-rspec"
source="https://github.com/siebertm/parse-cron/archive/v$pkgver/ruby-parse-cron-$pkgver.tar.gz
gemspec.patch
"
builddir="$srcdir/$_gemname-$pkgver"
build() {
gem build $_gemname.gemspec
}
check() {
rspec .
}
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
gem install \
--local \
--install-dir "$gemdir" \
--ignore-dependencies \
--no-document \
--verbose \
$_gemname
# Remove unnecessary files and rubbish...
cd "$gemdir"
rm -r cache build_info doc extensions plugins
}
sha512sums="
10a760ef30ab69eb9fcbdf5cad0b67461d77ad8ee0b7a3994d8a8d9a3c3389254790d93484a5a2ebcc051eecec3de98771d472a23efc33200ee08c781897a7c8 ruby-parse-cron-0.1.4.tar.gz
066ca46c2c48f8a453ecb57e056e316ad12da309a442748a94de3fbdb785e1deaedc31293282be52112462703e32f298681c8fd462b864be92d27ca44079afab gemspec.patch
"