summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD39
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4c8a611d16f
--- /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 00000000000..18e506930a6
--- /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"
+}