summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0d3357a728db6eab730ee9660a7d5ad79a4e2b6 (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
47
48
49
50
# Maintainer: Fronkles McFranko (mrelfranko@disroot.org)

pkgname=picom-rounded-corners-legacy-glx2
pkgbase=picom-rounded-corners-legacy-glx2
_gitname=picom
pkgver=r1553.469bc39
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) (experimental branch with rounded corners)"
arch=(i686 x86_64)
url="https://github.com/sdhand/picom"
license=('MIT' 'MPL2')
depends=('libgl' 'libev' 'pcre' 'libx11' 'xcb-util-renderutil' 'libxcb' 'xcb-util-image' 'libxext'
         'pixman' 'libconfig' 'libdbus' 'hicolor-icon-theme' 'libxdg-basedir')
makedepends=('git' 'mesa' 'meson' 'asciidoc' 'uthash')
optdepends=('dbus:          To control compton via D-Bus'
            'xorg-xwininfo: For compton-trans'
            'xorg-xprop:    For compton-trans'
            'python:        For compton-convgen.py')
provides=('compton' 'picom')
conflicts=('compton' 'picom' 'picom-rounded-corners' 'compton-rounded-corners')
source=(git+"https://github.com/yshui/picom.git")
md5sums=("SKIP")

prepare() {
    cd "${_gitname}"
    git checkout rounded-corners-legacy-glx2
}

pkgver() {
  cd "${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${_gitname}"
  meson --buildtype=release . build --prefix=/usr -Dwith_docs=true
  ninja -C build
}

package() {
  cd "${_gitname}"

  DESTDIR="${pkgdir}" ninja -C build install

  # install license
  install -D -m644 "LICENSES/MIT" "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE-MIT"

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