diff options
author | Raymond W. Ko | 2015-06-10 10:30:47 -0400 |
---|---|---|
committer | Raymond W. Ko | 2015-06-10 10:30:47 -0400 |
commit | 9c9276839f395d2a917f17bd6ebaaed0f1c2756b (patch) | |
tree | 226e95a18003a61a3788739c47695a37e12a8297 | |
download | aur-9c9276839f395d2a917f17bd6ebaaed0f1c2756b.tar.gz |
intial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 50 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..96aed74f208e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = tewisay-git + pkgdesc = Cowsay replacement with unicode and partial ansi escape support. + pkgver = 0.59.cd6e1b9 + pkgrel = 3 + url = https://github.com/lucy/tewisay + arch = i686 + arch = x86_64 + arch = ARM + license = custom:CC0 + makedepends = go + makedepends = git + makedepends = asciidoc + depends = glibc + optdepends = cowsay: default cowfiles + options = !strip + source = git://github.com/lucy/tewisay.git + source = git://github.com/lucy/pflag.git + source = git://github.com/lucy/rwidth.git + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = tewisay-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d49014536429 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/pkg/ +/src/ +/pflag +/rwidth +/tewisay +*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..29536f7bc0b3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: lucy <lucy@luz.lu> + +pkgname=tewisay-git +_gitname='tewisay' +_gourl='github.com/neeee/tewisay' +pkgver=0.59.cd6e1b9 +pkgrel=3 +pkgdesc='Cowsay replacement with unicode and partial ansi escape support.' +url='https://github.com/lucy/tewisay' +license=('custom:CC0') +depends=('glibc') +optdepends=('cowsay: default cowfiles') +makedepends=('go' 'git' 'asciidoc') +arch=('i686' 'x86_64' 'ARM') +options=('!strip') +source=('git://github.com/lucy/tewisay.git' + 'git://github.com/lucy/pflag.git' + 'git://github.com/lucy/rwidth.git') +sha256sums=('SKIP' 'SKIP' 'SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + echo "0.$(git rev-list --count HEAD).$(git describe --always )" +} + +prepare() { + cd "$srcdir/$_gitname" + git config submodule.pflag.url "$srcdir/pflag" + git config submodule.rwidth.url "$srcdir/rwidth" + git submodule init + git submodule update +} + +build() { + cd "$srcdir/$_gitname" + go build + a2x --doctype manpage --format manpage tewisay.1.txt +} + +package() { + cd "$srcdir/$_gitname" + install -Dm755 -T tewisay "$pkgdir/usr/bin/tewisay" + install -Dm644 -T _tewisay "$pkgdir/usr/share/zsh/site-functions/_tewisay" + install -Dm644 -T tewisay.1 "$pkgdir/usr/share/man/man1/tewisay.1" + 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" +} |