aboutsummaryrefslogtreecommitdiffstats
path: root/dist/archlinux/stable/PKGBUILD
blob: f6f3349ef12f75ae5610aa3a25b67b4c844b17e3 (plain) (blame)
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
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>

pkgname=libgamma
pkgver=0.5
pkgrel=1
pkgdesc="Display server abstraction layer for gamma ramps"
arch=(i686 x86_64)
url="https://github.com/maandree/libgamma"
license=('GPL3' 'custom:GFDL1.3')
depends=(glibc libxcb libx11 libxxf86vm libdrm)
makedepends=(glibc libxcb libx11 libxxf86vm libdrm sh make grep sed coreutils gcc general-preprocessor python3 texinfo bash pkg-config)
install=libgamma.install
source=($url/archive/$pkgver.tar.gz)
sha256sums=(fb0312658dc0534b4727019c884f9350d9e54711ccd0546c9249876800f7f9a4)


build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --linux
  LDFLAGS=${LDFLAGS/--as-needed/}
  LDFLAGS=${LDFLAGS/,,/,}
  export LDFLAGS
  make PREFIX=/usr lib info
}


package() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX=/usr install-base install-info DESTDIR="$pkgdir"
}