summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9202e8bee2ca0dce17d366308778619b72f0a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Stanislav Seletskiy <s.seletskiy@gmail.com>

# Upstream URL: https://github.com/seletskiy/runki
#
# Dont forget to star the repo if you liked the package

pkgname=runki-git
pkgver=20170523
pkgrel=1
pkgdesc="Ankiweb.net console client. Manage Anki flashcards without a friction."
arch=('any')
url="https://github.com/seletskiy/runki"
license=('MIT')
depends=()
makedepends=('git' 'go')
conflicts=('runki')
provides=('runki')
source=("$pkgname"::'git://github.com/seletskiy/runki.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git log -1 --format="%cd" --date=short | sed 's|-||g'
}

build() {
  cd "$srcdir/$pkgname"
  go build
}

package() {
  cd "$srcdir/$pkgname"
  mkdir -p $pkgdir/usr/bin
  mv runki-git $pkgdir/usr/bin/runki
}