summaryrefslogtreecommitdiffstats
path: root/picom-git
diff options
context:
space:
mode:
authorkj-sh6042024-07-06 14:06:50 -0400
committerkj-sh6042024-07-06 14:06:50 -0400
commit16284df4f405114ce7cfb6e81c5beb5b8394f86a (patch)
treea684d9b4985b1fbba000e9be9b651be23a1d8a46 /picom-git
parent5d6017490b3c476a8dcb4bda848bf4775e904dda (diff)
feat: add `awesome-git` & `picom-git`
Diffstat (limited to 'picom-git')
-rw-r--r--picom-git/.SRCINFO46
-rw-r--r--picom-git/.gitignore5
-rw-r--r--picom-git/PKGBUILD50
3 files changed, 101 insertions, 0 deletions
diff --git a/picom-git/.SRCINFO b/picom-git/.SRCINFO
new file mode 100644
index 0000000..ac037cb
--- /dev/null
+++ b/picom-git/.SRCINFO
@@ -0,0 +1,46 @@
+pkgbase = picom-git
+ pkgdesc = X compositor (fork of compton) (git-version)
+ pkgver = 2189_11.172.gcc8e0a98_2024.02.29
+ pkgrel = 1
+ url = https://github.com/yshui/picom
+ arch = i686
+ arch = x86_64
+ license = MIT
+ license = MPL-2.0
+ makedepends = asciidoc
+ makedepends = cmake
+ makedepends = git
+ makedepends = libglvnd
+ makedepends = mesa
+ makedepends = meson
+ makedepends = uthash
+ makedepends = xorgproto
+ depends = hicolor-icon-theme
+ depends = libconfig
+ depends = libdbus
+ depends = libepoxy
+ depends = libev
+ depends = libgl
+ depends = libx11
+ depends = libxcb
+ depends = libxext
+ depends = pcre2
+ depends = pixman
+ depends = xcb-util
+ depends = xcb-util-image
+ depends = xcb-util-renderutil
+ optdepends = dbus: To control picom via D-Bus
+ optdepends = python: For picom-convgen.py
+ optdepends = xorg-xwininfo: For picom-trans
+ optdepends = xorg-xprop: For picom-trans
+ provides = compton
+ provides = compton-git
+ provides = picom
+ conflicts = compton
+ conflicts = compton-git
+ conflicts = picom
+ replaces = compton-git
+ source = git+https://github.com/yshui/picom.git#branch=next
+ md5sums = SKIP
+
+pkgname = picom-git
diff --git a/picom-git/.gitignore b/picom-git/.gitignore
new file mode 100644
index 0000000..fd331c9
--- /dev/null
+++ b/picom-git/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.tar.*
+*.pkg.*
+picom/
diff --git a/picom-git/PKGBUILD b/picom-git/PKGBUILD
new file mode 100644
index 0000000..6bf8f1e
--- /dev/null
+++ b/picom-git/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
+# Contributor: OK100 <ok100 at lavabit dot com>
+# Contributor: Valère Monseur <valere dot monseur at ymail dot com>
+
+pkgname=picom-git
+_gitname=picom
+pkgver=2514_11.497.g2dc2188_2024.07.05
+pkgrel=1
+pkgdesc="X compositor (fork of compton) (git-version)"
+arch=(i686 x86_64)
+url="https://github.com/kj-sh604/${_gitname}"
+license=('MIT' 'MPL-2.0')
+depends=('hicolor-icon-theme' 'libconfig' 'libdbus' 'libepoxy' 'libev' 'libgl' 'libx11'
+ 'libxcb' 'libxext' 'pcre2' 'pixman' 'xcb-util' 'xcb-util-image' 'xcb-util-renderutil')
+makedepends=('asciidoc' 'cmake' 'git' 'libglvnd' 'mesa' 'meson' 'uthash' 'xorgproto')
+optdepends=('dbus: To control picom via D-Bus'
+ 'python: For picom-convgen.py'
+ 'xorg-xwininfo: For picom-trans'
+ 'xorg-xprop: For picom-trans')
+provides=('compton' 'compton-git' 'picom')
+conflicts=('compton' 'compton-git' 'picom')
+replaces=('compton-git')
+source=(git+"https://github.com/kj-sh604/${_gitname}.git#branch=next")
+md5sums=("SKIP")
+
+pkgver() {
+ cd ${_gitname}
+ _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 "${srcdir}/${_gitname}"
+ meson --buildtype=release . build --prefix=/usr -Dwith_docs=true
+ ninja -C build
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+
+ 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"
+}