blob: fbea98818ba082f9cdb904a369e3d2f9aab4779d (
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
38
39
40
41
42
43
|
# Maintainer:
# Contributor: Rastislav Barlik <barlik.arch at gmx dot com>
# Contributor: N. Izumi - izmntuk
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Jan Fader <jan.fader@web.de>
pkgname=keynav-git
pkgver=0.+r270.20180820
pkgrel=1
pkgdesc="Ingenious and fast way to move the mouse pointer on the screen with keystrokes."
url="http://www.semicomplete.com/projects/keynav/"
license=('BSD')
arch=('i686' 'x86_64')
depends=('xdotool' 'cairo')
makedepends=('git')
provides=('keynav')
conflicts=('keynav')
source=('git+https://github.com/jordansissel/keynav')
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%%-*}"
echo '0.+r'$(git rev-list --count HEAD).$(git log -1 --pretty='%cd' --date=short | sed 's|-||g')
}
prepare() {
cd "${srcdir}/${pkgname%%-*}"
sed 's|/usr/local/|/usr/|g' -i Makefile
}
build() {
cd "${srcdir}/${pkgname%%-*}"
make keynav
pod2man -c 'General Commands Manual' keynav.{pod,1}
}
package() {
cd "${srcdir}/${pkgname%%-*}"
install -d "${pkgdir}"/usr/{bin,share/{{doc,licenses}/${pkgname%%-*},man/man1}}
install -p keynav "${pkgdir}/usr/bin"
install -pm644 keynavrc README.md CHANGELIST "${pkgdir}/usr/share/doc/${pkgname%%-*}"
install -pm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname%%-*}"
install -pm644 keynav.1 "${pkgdir}/usr/share/man/man1"
}
|