summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d92ac84968a0c17d2900c72a3de6bf0aa67e726 (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
38
39
40
41
42
43
# Maintainer: James An <james@jamesan.ca>
# Contributor: Nikita Mikhailov <nslqqq@gmail.com>

_pkgname=xrandr
pkgname=xorg-xrandr-git
pkgver=1.5.0
pkgrel=1
pkgdesc='Primitive command line interface to RandR extension. Git version.'
arch=(i686 x86_64)
url='http://www.x.org/wiki/Projects/XRandR'
license=('custom')
groups=('xorg-apps' 'xorg')
depends=('libxrandr>=1.5.0' 'libx11')
makedepends=('xorg-util-macros' 'git')
provides=("xorg-$_pkgname=$pkgver")
conflicts=("xorg-$_pkgname")
source=("$_pkgname"::"git+http://anongit.freedesktop.org/git/xorg/app/xrandr.git")
md5sums=('SKIP')

#~ pkgver() {
  #~ cd "$_pkgname"
  #~ (
    #~ set -o pipefail
    #~ git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
    #~ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  #~ )
#~ }

build() {
  cd "$_pkgname"

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$_pkgname"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  rm -f "${pkgdir}/usr/bin/xkeystone"
}