# Maintainer: Shayne Hartford # Contributor: Joe Groocock # Contributor: WorMzy Tykashi # Contributor: OK100 # Contributor: Valère Monseur pkgname=picom-tryone-git _gitname=picom pkgver=1477_Next.196.g9bb21fc_2020.09.16 pkgrel=1 pkgdesc="tryone144's picom fork with dual_kawase blur, an X compositor (fork of compton)" arch=(i686 x86_64) url="https://github.com/tryone144/${_gitname}/tree/feature/dual_kawase" 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 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') options=('!strip') source=(git+"https://github.com/tryone144/${_gitname}.git#branch=feature/dual_kawase") 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' } prepare() { cd "${srcdir}/${_gitname}" export GIT_CONFIG_NOGLOBAL=1 export GIT_CONFIG_NOSYSTEM=1 git config --local user.name makepkg git config --local user.email picom@makepkg.aur git rebase --abort 2>&1 >/dev/null || : git fetch https://github.com/yshui/picom.git next git -c commit.gpgsign=false rebase \ --fork-point \ --rerere-autoupdate \ --strategy-option=ours \ FETCH_HEAD } build() { cd "${srcdir}/${_gitname}" meson --buildtype=debug . 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/-git$/}/LICENSE-MIT" # example conf install -D -m644 "picom.sample.conf" "${pkgdir}/etc/xdg/picom.conf.example" }