diff options
author | orumin | 2017-09-28 19:18:00 +0900 |
---|---|---|
committer | orumin | 2017-09-28 19:18:00 +0900 |
commit | 40ccfcfbaba7c70b0d4a3ef88dd3f3a84600038b (patch) | |
tree | 5bc21d199108a46a64b0340ad77a6316395b7ed9 /PKGBUILD | |
parent | 14929efc5ae15b7d0bfa39af8bfea7d6e6102eb4 (diff) | |
download | aur-40ccfcfbaba7c70b0d4a3ef88dd3f3a84600038b.tar.gz |
fix font path
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,27 +1,32 @@ # Maintainer: orumin <dev at orum.in> pkgname=diagram -pkgver=20170819 +pkgver=20170903 pkgrel=1 pkgdesc="CLI app to convert ascii arts into hand drawn diagrams written in go." arch=('x86_64' 'i686') url="https://github.com/esimov/diagram" +source=(fix_font_path.patch) +sha1sums=(4fbd6599370ecd7d41ce5d6f5abc3f63ae60ffe8) license=('MIT') makedepends=('go' 'git') options=('!strip' '!emptydirs') _gourl=github.com/esimov/diagram +_commit=40a4b96485b35e0bd70554f5d24fca84e4348d05 build() { - GOPATH="$srcdir" go get -v -x ${_gourl} -} + GOPATH="$srcdir" go get -v -x $_gourl -check() { - GOPATH="/usr/lib/go:$srcdir" go test -v -x ${_gourl} + cd "$srcdir/src/$_gourl" + git checkout "$_commit" + patch -p1 < "$srcdir"/fix_font_path.patch + GOPATH="/usr/lib/go:$srcdir" go build } package() { mkdir -p "$pkgdir/usr/bin" - install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin" + install -p -m755 "$srcdir/src/$_gourl/diagram" "$pkgdir/usr/bin" + install -Dm644 "$srcdir/src/$_gourl/font/gloriahallelujah.ttf" "$pkgdir/usr/share/diagram/gloriahallelujah.ttf" mkdir -p "$pkgdir/usr/lib/go" cp -Rv --preserve=timestamps "$srcdir/"{src,pkg} "$pkgdir/usr/lib/go" |