summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49d0496008aa54f24ed1e9d73441b189d2678c9d (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: Miroslav Koškár <https://mkoskar.com/>

_basename=libxinerama-randr

pkgname=libxinerama-randr-git
pkgver=1.1.4.r4.g95bc09e
pkgrel=1
pkgdesc='Fork of libXinerama using RANDR for it to work in Zaphod mode'
url=https://github.com/mkoskar/libxinerama-randr
license=(custom)
arch=(x86_64)

depends=(libxext xorgproto 'libxrandr>=1.5')
provides=(libxinerama)
conflicts=(libxinerama)
makedepends=(xorg-util-macros)

source=(git+https://github.com/mkoskar/"$_basename".git)
sha256sums=(SKIP)

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

build() {
    cd "$_basename"
    ./autogen.sh --prefix=/usr
    make
}

package() {
    cd "$_basename"
    make DESTDIR="$pkgdir" install
    install -D -m644 -t "$pkgdir/usr/share/licenses/$_basename" COPYING
}