summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e5d6ebab8d8d767ac0bfb7881a854826c734494 (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
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>

pkgname=talktoniall
pkgver=0.1
pkgrel=1
pkgdesc='Talk to Niall (a bit like a chatbot)'
arch=('x86_64' 'i686')
url='https://github.com/xyproto/talktoniall'
license=('GPL2')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("git://github.com/xyproto/talktoniall#tag=$pkgver")
md5sums=('SKIP')

prepare() {
  cd "$pkgname"

  GOPATH="$srcdir" go get -d
}

build() {
  cd "$pkgname"

  GOPATH="$srcdir" go build
}

package() {
  cd "$pkgname"

  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}

# vim:set ts=2 sw=2 et: