diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -3,21 +3,24 @@ pkgname=timetrap pkgver=1.15.2 pkgrel=1 -pkgdesc='Timetrap is a simple command line time tracker written in ruby. It provides an easy to use command line interface for tracking what you spend your time on' +pkgdesc='A simple command line time tracker written in ruby. It provides an easy to use command line interface for tracking what you spend your time on' arch=('any') -url='https://github.com/samg/timetrap' +url='https://rubygems.org/gems/timetrap' license=('MIT') depends=('ruby' - 'ruby-chronic' - 'ruby-sequel' - 'ruby-sqlite3') + 'ruby-chronic' + 'ruby-sequel' + 'ruby-sqlite3') options=('!emptydirs') -source=("https://rubygems.org/downloads/$pkgname-$pkgver.gem") -noextract=('$pkgname-$pkgver.gem') -md5sums=('c7c84dc593201b1764268ca46dc06c2c') +source=("${pkgname}-${pkgver}.gem::https://rubygems.org/downloads/timetrap-$pkgver.gem" + 'LICENSE::https://raw.githubusercontent.com/samg/timetrap/master/LICENSE.txt') +noextract=("${pkgname}-${pkgver}.gem") +sha256sums=('680a89727a2d337659764a576c3f33aac791e21a45f0af957232c03a072bcf5d' + '6edeb22c71c029d4eeb05e649ee66816de83d9072f8fde2d61ba74b317b69d91') package() { local _gemdir="$(ruby -e'puts Gem.default_dir')" gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $pkgname-$pkgver.gem rm "$pkgdir/$_gemdir/cache/$pkgname-$pkgver.gem" + install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" }
\ No newline at end of file |