summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79bfffd38232a7895df0e04dd46e1d032b6ae6b2 (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
# Maintainer: Joop KIEFTE <ikojba@gmail.com>

pkgname=etime
pkgver=1
pkgrel=2
pkgdesc="A UTC based universal time system. Explained at etime.neocities.org"
arch=('x86_64' 'i686')
url="http://github.com/LaPingvino/$pkgname/"
license=('MIT')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("http://github.com/LaPingvino/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('78367c8e010f3b23d5479bf28a96426e4d1e94b8f7c30a507b4eaeeac731e17b')

build() {
	  cd "$pkgname-$pkgver/cmd/etime"
      sed -i 's@github.com/lapingvino/etime@../..@' *.go
	    go build
    }

package() {
	  cd "$pkgname-$pkgver/cmd/etime"

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

	  cd "../.."
	    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
      }

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