blob: 6089d6247335f92b8aea2ce33e2bf27c233ee3a0 (
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
|
# Maintainer: Arian Rezazadeh <notarian.rez@gmail.com>
pkgname=picom-arian8j2-git
pkgver=1968_Next.406.g8f99f5a_2023.12.11
pkgrel=1
pkgdesc="Arian8j2's picom fork with configurable transitions"
arch=('i686' 'x86_64')
url="https://github.com/Arian8j2/picom"
license=('MIT' 'MPL2')
depends=('libconfig' 'libev' 'libxdg-basedir' 'pcre2' 'pixman' 'xcb-util-image' 'xcb-util-renderutil' 'hicolor-icon-theme' 'libglvnd' 'libx11' 'libxcb' 'libxext' 'libdbus')
makedepends=('git' 'meson' 'ninja' 'asciidoc' 'uthash')
optdepends=('dbus: To control picom via D-Bus'
'xorg-xwininfo: For picom-trans'
'xorg-xprop: For picom-trans'
'python: For picom-convgen.py')
provides=('compton' 'compton-git' 'picom' 'picom-git')
conflicts=('compton' 'compton-git' 'picom' 'picom-git' 'picom-ibhagwan-git' 'picom-jonaburg-git' 'picom-jonaburg-fix' 'picom-rounded-corners' 'picom-tryone-git')
source=("${pkgname}::git+https://github.com/Arian8j2/picom.git")
md5sums=('SKIP')
# copied form picom-git
pkgver() {
cd $pkgname
_tag=$(git describe --tags | sed 's:^v::') # tag is mobile, and switches between numbers and letters, can't use it for versioning
_commits=$(git rev-list --count HEAD) # total commits is the most sane way of getting incremental pkgver
_date=$(git log -1 --date=short --pretty=format:%cd)
printf "%s_%s_%s\n" "${_commits}" "${_tag}" "${_date}" | sed 's/-/./g'
}
build() {
cd $pkgname
meson --buildtype=release . build --prefix=/usr -Dwith_docs=true
ninja -C build
}
package() {
cd $pkgname
DESTDIR="$pkgdir" ninja -C build install
# install license
install -D -m644 "LICENSES/MIT" "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE-MIT
# example conf
install -D -m644 "picom.sample.conf" "$pkgdir"/etc/xdg/picom.conf.example
}
|