summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dae8d7b7509a977efa2583876a6e627adc327a11 (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>o
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

_pkgname=libxrandr
pkgname=libxrandr-git
pkgver=1.5.0
pkgrel=1
pkgdesc='X11 RandR extension library. Git version.'
arch=('i686' 'x86_64')
license=('custom')
url='http://xorg.freedesktop.org'
depends=('libxext' 'libxrender' 'randrproto>=1.5.0')
makedepends=('xorg-util-macros' 'git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("$_pkgname"::'git+http://anongit.freedesktop.org/git/xorg/lib/libXrandr.git')
md5sums=('SKIP')

# Version 1.5+ have not been tagged yet, so the pkgver() would a previous minor release number.
#~ 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 --sysconfdir=/etc
  make
}

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

  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
}