blob: 89dcc52b6420f5908796ef2d165a0852c90caf8a (
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
36
37
38
39
40
41
42
|
# Maintainer: Raymond W. Ko <r a y m o nd DOT w DOT k o AT g m ai l DOT COM>
pkgname=tewisay-git
_gitname='tewisay'
pkgver=r66.caa5b01
pkgrel=2
pkgdesc='Cowsay replacement with unicode and partial ansi escape support.'
url='https://github.com/raymond-w-ko/tewisay'
license=('custom:CC0')
depends=('glibc')
optdepends=('cowsay: default cowfiles')
makedepends=('go' 'git' 'asciidoc')
arch=('i686' 'x86_64' 'ARM')
options=('!strip')
source=('git+https://github.com/raymond-w-ko/tewisay.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_gitname"
go get -d ./...
}
build() {
cd "$srcdir/$_gitname"
go build
}
package() {
cd "$srcdir/$_gitname"
install -Dm755 -T tewisay "$pkgdir/usr/bin/tewisay"
install -Dm644 -T zsh/_tewisay "$pkgdir/usr/share/zsh/site-functions/_tewisay"
install -Dm644 -T COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 -T cows/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING.tewis"
install -Dm755 -d "$pkgdir/usr/share/cows"
install -Dm644 -t "$pkgdir/usr/share/cows" cows/*.cow
ln -s "tewisay" "$pkgdir/usr/bin/tewithink"
}
|