This repository has been archived on 2024-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
compton-git/PKGBUILD
fbt a4a99c8627 test
Signed-off-by: fbt <fbt@fleshless.org>
2017-11-17 22:17:25 +03:00

57 lines
1.5 KiB
Bash

# Maintainer: Jack Frost <fbt@fleshless.org>
# Stolen from AUR, original credits below:
#
# 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>
#
# Build trigger:
# % Trigger: 1510946245 %
pkgname=compton-git
_gitname=compton
pkgver=v0.1_beta2.r86.gb7f43ee
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) (git-version)"
arch=(i686 x86_64)
url="https://github.com/chjj/compton"
license=('MIT')
depends=('libgl' 'libdbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig' 'libxinerama')
makedepends=('git' 'asciidoc' 'mesa')
optdepends=('dbus: To control compton via D-Bus'
'xorg-xwininfo: For compton-trans'
'xorg-xprop: For compton-trans')
provides=('compton')
conflicts=('compton')
source=("git://github.com/chjj/compton.git")
md5sums=("SKIP")
pkgver() {
cd "${srcdir}/${_gitname}"
if git_version=$( git describe --long --tags 2>/dev/null ); then
IFS='-' read last_tag tag_rev commit <<< "$git_version"
printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit"
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}
build() {
cd "$srcdir/$_gitname"
make PREFIX=/usr
make docs
}
package() {
cd "$srcdir/$_gitname"
make PREFIX="$pkgdir/usr" install
# install license
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
# example conf
install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
}