blob: 398d3afc8329e89dcdb97f3d5f1627c884c47234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Fabian Beuke <mail@beuke.org>
_gitname=snaptile
_gitbranch=master
_gitauthor=jakebian
pkgname="${_gitname}-git"
pkgver=r20.e47358a
pkgrel=1
pkgdesc="Versatile, mouse-free window tiling for X11, with a 12 section grid system."
url="https://github.com/${_gitauthor}/${_gitname}"
license=('GPL')
source=("git://github.com/${_gitauthor}/${_gitname}#branch=${_gitbranch}")
sha512sums=('SKIP')
arch=('any')
depends=('python' 'python-gobject' 'python-xlib')
makedepends=('git')
conflicts=("${_gitname}")
provides=("${_gitname}")
pkgver() {
cd "${srcdir}/${_gitname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "${srcdir}/${_gitname}"
install -D -m755 snaptile.py ${pkgdir}/usr/bin/snaptile
install -D -m755 window.py ${pkgdir}/usr/bin/window.py
install -D -m755 keyutil.py ${pkgdir}/usr/bin/keyutil.py
install -D -m644 License ${pkgdir}/usr/share/licenses/snaptile/LICENSE
}
# vim:set et sw=2 sts=2 tw=80:
|