summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91b8c059d9d23a575fc11915245f52452afbaef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Morten Linderud <morten@linderud.pw>

pkgname=xoutputd-git
_pkgname=xoutputd
pkgver=v0.1.r8.g98fff27
pkgrel=2
pkgdesc='Change screenlayout when connecting/disconnecting monitors'
arch=('any')
url="https://github.com/jlpc/xoutputd.git"
license=('MIT')
depends=('libx11' 'libxrandr')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/jlpc/xoutputd.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build () {
  cd "$_pkgname"
  sed -i -e 's/-ll -ly/-lfl/' Makefile
  make PREFIX=/usr
}

package () {
  cd "$_pkgname"
  install -Dm755 xoutputd "${pkgdir}/usr/bin/xoutputd"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim: et ts=2 sw=2