diff options
author | aksr | 2018-06-01 10:54:49 +0200 |
---|---|---|
committer | aksr | 2018-06-01 10:54:49 +0200 |
commit | c8af8f98d2816c27bd072ca4ccf082590b11c626 (patch) | |
tree | 0bf74599ace06ef0ae7421a587cf06e9e46ee50c /PKGBUILD | |
download | aur-singlepage-git.tar.gz |
Start.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..efa5445e4df7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: aksr <aksr at t-com dot me> +pkgname=singlepage-git +pkgver=r13.0ee88de +pkgrel=1 +epoch= +pkgdesc="Bundle external assets in a HTML file to distribute a stand-alone HTML document. " +arch=('i686' 'x86_64') +url="https://github.com/Carpetsmoker/singlepage" +license=('MIT') +categories=() +groups=() +depends=() +makedepends=('git' 'go') +optdepends=() +checkdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +changelog= +install= +noextract=() +_gourl=arp242.net/singlepage + +pkgver() { + GOPATH="$srcdir" go get -d ${_gourl} + cd "$srcdir/src/${_gourl}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + GOPATH="$srcdir" go get -fix -v ${_gourl} +} + +check() { + GOPATH="$srcdir" go test -v -x ${_gourl} +} + +package() { + cd "$srcdir" + install -Dm755 bin/singlepage "$pkgdir/usr/bin/singlepage" + install -Dm644 src/${_gourl}/README.markdown $pkgdir/usr/share/doc/${pkgname%-*}/README.markdown + install -Dm644 src/${_gourl}/LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE +} + |