summaryrefslogtreecommitdiff
path: root/pcr/compton/PKGBUILD
blob: bf335ace702d8a443f22820f386d4825b525cfc1 (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
44
45
46
# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
# Contributor (Arch): WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributer (Arch): OK100 <ok100 at lavabit dot com>
# Contributer (Arch): Valère Monseur <valere dot monseur at ymail dot com>

pkgname=compton
pkgver=0.1_beta2
pkgrel=5
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
arch=(i686 x86_64)
url="https://github.com/chjj/compton"
license=('MIT')
depends=('libgl' 'libdbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig' 'libxinerama')
makedepends=('asciidoc' 'mesa')
optdepends=('dbus:          To control compton via D-Bus'
            'xorg-xwininfo: For compton-trans'
            'xorg-xprop:    For compton-trans')
source=("https://github.com/chjj/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('c3a019d90e32559d44e3a4969bcc15a15837db9c9519ce8cc70b1bd3d0cb16d29449f68cc2f6a8d834569c9620ec6533ab85c1586da957c69b1ae341d9584535')
whirlpoolsums=('39ca9718bc79d4542d73cce39bb51fc9b9c0497a30914ab044b920f72a3c2f8cbd315c5dc97c999c1f0ca798ae692ada4626f069914b6835f0c225638b486422')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  # fix version
  sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${pkgver}:" Makefile
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  make PREFIX=/usr
  make docs
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make PREFIX="$pkgdir/usr" install

  # install license
  install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  # example conf
  install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
}