Skip to content

Instantly share code, notes, and snippets.

@gabrielhidasy
Created October 30, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielhidasy/7caeabce22a387daf38a8e51134750f1 to your computer and use it in GitHub Desktop.
Save gabrielhidasy/7caeabce22a387daf38a8e51134750f1 to your computer and use it in GitHub Desktop.
PKGBUILD to build i3-autodisplay
# Maintainer: Gabriel Hidasy Rezende <gabrielhidasy@gmail.com>
pkgname=i3-autodisplay-git
_pkgname=i3-autodisplay
pkgver=v0.4_1_gad192b4
pkgrel=1
pkgdesc='Automatically manages monitors and workspaces in i3'
arch=('i686' 'x86_64')
url="https://github.com/lpicanco/$_pkgname"
license=('GPL3')
makedepends=('git' 'go')
optdepends=()
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/lpicanco/$_pkgname")
sha256sums=('SKIP')
pkgver () {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed "s/-/_/g"
}
build () {
cd "$_pkgname"
go build cmd/i3-autodisplay/i3-autodisplay.go
}
package () {
mkdir -p $pkgdir/usr/bin
cp i3-autodisplay/i3-autodisplay $pkgdir/usr/bin/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment