2015-09-23 15:30:43 +00:00
|
|
|
# Maintainer: Jack Frost <fbt@fleshless.org>
|
2017-11-17 19:15:10 +00:00
|
|
|
# Stolen from AUR, original credits below:
|
|
|
|
#
|
|
|
|
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
|
2015-09-23 15:30:43 +00:00
|
|
|
# Contributor: OK100 <ok100 at lavabit dot com>
|
|
|
|
# Contributor: Valère Monseur <valere dot monseur at ymail dot com>
|
2017-11-17 19:15:10 +00:00
|
|
|
#
|
|
|
|
# Build trigger:
|
|
|
|
# % Trigger: 1510946110 %
|
2015-09-23 15:30:43 +00:00
|
|
|
|
|
|
|
pkgname=compton-git
|
|
|
|
_gitname=compton
|
2017-01-04 09:01:17 +00:00
|
|
|
pkgver=v0.1_beta2.r86.gb7f43ee
|
2015-09-23 15:30:43 +00:00
|
|
|
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"
|
|
|
|
}
|