summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38cbaf757254c58a73d6b5f4fa20c34042030cd3 (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
36
37
# Maintainer: Tim Zhou <ttzhou@uwaterloo.ca>
# Author: ttz <ttzhou@uwaterloo.ca>

_pkgname=setroot
pkgname=setroot
pkgver=v2.0.g16b07b3
pkgrel=1
pkgdesc="simple program that sets your (X11) wallpaper. inspired by the *setroots and feh."
arch=('i686' 'x86_64')
url="https://github.com/ttzhou/setroot"
license=('GPLv3')
depends=('imlib2' 'libx11')
makedepends=('git' 'pkg-config')
optdepends=('sxiv: use its image viewer along with key-handler to call setroot'
            'libxinerama: for multiple monitors')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://github.com/ttzhou/${_pkgname}.git")
install='setroot.install'
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  echo $(git describe --long | sed 's|-[0-9]\+-|.|g')
}

build() {
  cd $_pkgname
  make xinerama="$(pkg-config --exists xinerama && echo 1)"
}

package() {
  cd $_pkgname
  make PREFIX="/usr" DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: