blob: c357dadb76377563763e93c381533e75aab546b8 (
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
|
# Maintainer: Victor Polillo Moreira <victorpmoreira [a] gmail.com>
# Maintainer: Philipp Claßen <philipp.classen@posteo.de>
pkgname=space2ctrl-git
_gitname=Space2Ctrl
pkgver=49.66e245e
pkgrel=1
pkgdesc="Turns the spacebar key to another control key"
arch=('i686' 'x86_64')
url="https://github.com/r0adrunner/Space2Ctrl"
license=('MIT')
depends=('sh' 'libxtst' 'xorg-xmodmap')
makedepends=('git')
conflicts=('space2ctrl')
provides=('space2ctrl')
source=('git+https://github.com/r0adrunner/Space2Ctrl.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')
pkgver() {
cd $_gitname
echo $(git rev-list --count master).$(git rev-parse --short master)
}
build() {
cd $_gitname
make PREFIX=/usr
}
package() {
cd $_gitname
make PREFIX=/usr DESTDIR="$pkgdir" install
# install license
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$_gitname/LICENSE"
# No VCS leftovers:
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}
|