summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e20bd7b521022b046db73e624a8f61c2163259ae (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
# Maintainer: tuxifreund <kaiser.barbarossa@yandex.com>
pkgname=xpytile-git
pkgver=r22.6c202df
pkgrel=1
pkgdesc="Tiling and simultaneous resizing of side-by-side windows (not only) for Xfce."
arch=('any')
url="https://github.com/jaywilkas/xpytile/"
license=('GPL3')
depends=('python' 'python-xlib' 'libnotify')
source=("${pkgname}::git+https://github.com/jaywilkas/xpytile/")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname}"
    ( 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 "${pkgname}"
	install -Dm755 "xpytile.py" "${pkgdir}/usr/bin/xpytile"
    install -Dm644 "xpytilerc" "${pkgdir}/etc/xpytilerc"
}