diff options
author | Vincent Petithory | 2015-07-07 22:12:00 +0200 |
---|---|---|
committer | Vincent Petithory | 2015-07-07 22:12:00 +0200 |
commit | d99287802c0a4e5c0184f74d544ac925c8eb2b63 (patch) | |
tree | 71250ae508d83370f3548d26e65bfc60238ecf04 | |
download | aur-i3cat-git.tar.gz |
Initial import to aur4
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4c8a611d16fb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = i3cat-git + pkgdesc = A simple program to combine multiple i3bar JSON inputs into one to forward to i3bar. + pkgver = r33.be2ba5d + pkgrel = 1 + url = http://vincent-petithory.github.io/i3cat/ + arch = x86_64 + arch = i686 + arch = ARM + license = MIT + makedepends = go + makedepends = git + optdepends = i3-wm: for i3bar + options = !strip + options = !emptydirs + source = git+https://github.com/vincent-petithory/i3cat.git + md5sums = SKIP + +pkgname = i3cat-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..18e506930a69 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Vincent Petithory <vincent.petithory at gmail dot com> + +pkgname=i3cat-git +pkgver=r33.be2ba5d +pkgrel=1 +pkgdesc='A simple program to combine multiple i3bar JSON inputs into one to forward to i3bar.' +arch=('x86_64' 'i686' 'ARM') +url='http://vincent-petithory.github.io/i3cat/' +license=('MIT') +makedepends=('go' 'git') +depends=() +optdepends=('i3-wm: for i3bar') +options=('!strip' '!emptydirs') +source=('git+https://github.com/vincent-petithory/i3cat.git') +md5sums=('SKIP') +_gourl='github.com/vincent-petithory/i3cat' + +pkgver() { + cd "$srcdir/i3cat" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + p="${srcdir}/src/${_gourl}" + if [ -d "${p}/.git" ]; then + git --git-dir="${p}/.git" --work-tree="$p" remote set-url origin "file://${srcdir}/i3cat" + git --git-dir="${p}/.git" --work-tree="$p" pull origin + else + git clone file://"${srcdir}/i3cat" "${p}" + fi + export GOPATH="$srcdir" + go get -v "${_gourl}/..." + go install "${_gourl}/..." +} + +package() { + install -D -m755 "${srcdir}/bin/i3cat" "${pkgdir}/usr/bin/i3cat" + install -D -m644 "${srcdir}/src/${_gourl}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |