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

54 lines
1.5 KiB
Bash
Raw Normal View History

2015-09-23 15:30:43 +00:00
# vim: ft=PKGBUILD
# % Trigger %
# Maintainer: Jack Frost <fbt@fleshless.org>
# Contributor: 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=compton-git
_gitname=compton
pkgver=0.1_beta2.68.gb1889c1
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() {
2015-09-23 15:31:27 +00:00
cd "${srcdir}/${_gitname}"
2015-09-23 15:30:43 +00:00
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"
}