summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cca187d8de95443eb1f53169340a201ba233949 (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
44
45
46
47
# Maintainer: Grigory Romodanovskiy <greg2008200 at gmail dot com>
pkgname=xbindjoy-git
_gitname=XBindJoy
pkgver=r93.e599772
pkgrel=1
pkgdesc="Tool for making your joysticks and gamepads more useful"
arch=(x86_64)
url="https://github.com/saulrh/XBindJoy"
license=('GPL3')
groups=()
depends=('libev' 'libxtst' 'guile')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}")
replaces=()
backup=()
options=()
install=
source=("git+${url}.git" 'gcc10.patch' 'guile22.patch')
noextract=()
sha256sums=('SKIP'
            'fe60cd4f60ad3406e86e13951706766e499cfc2602fae188c76cec215918c838'
            '7a4cc5332bc6257c768c5482711e286f6aed57f100b39cc88320c8c4092471b6')

pkgver() {
   cd ${_gitname}

   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
   
}

prepare() {
	cd "${_gitname}"
	git apply "${srcdir}/gcc10.patch"
	git apply "${srcdir}/guile22.patch"
}

build() {
	cd ${_gitname}
	make
}


package() {
	cd ${_gitname}
	make DESTDIR="$pkgdir" install
}