diff options
author | Dimitris Kiziridis | 2020-05-15 18:34:43 +0300 |
---|---|---|
committer | Dimitris Kiziridis | 2020-05-15 18:34:43 +0300 |
commit | 608d6245ab368659165ac0b754b7e2d9a2e89135 (patch) | |
tree | d46304e3274325b7e07af2dcbca5922365e8d355 | |
parent | 559a294f67660a0266d7df4804e6a7be9ad9cb01 (diff) | |
download | aur-608d6245ab368659165ac0b754b7e2d9a2e89135.tar.gz |
sanitize pkgbuild
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 18 insertions, 13 deletions
@@ -1,18 +1,20 @@ pkgbase = timetrap - 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 pkgver = 1.15.2 pkgrel = 1 - url = https://github.com/samg/timetrap + url = https://rubygems.org/gems/timetrap arch = any license = MIT depends = ruby depends = ruby-chronic depends = ruby-sequel depends = ruby-sqlite3 - noextract = $pkgname-$pkgver.gem + noextract = timetrap-1.15.2.gem options = !emptydirs - source = https://rubygems.org/downloads/timetrap-1.15.2.gem - md5sums = c7c84dc593201b1764268ca46dc06c2c + source = timetrap-1.15.2.gem::https://rubygems.org/downloads/timetrap-1.15.2.gem + source = LICENSE::https://raw.githubusercontent.com/samg/timetrap/master/LICENSE.txt + sha256sums = 680a89727a2d337659764a576c3f33aac791e21a45f0af957232c03a072bcf5d + sha256sums = 6edeb22c71c029d4eeb05e649ee66816de83d9072f8fde2d61ba74b317b69d91 pkgname = timetrap @@ -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 |