blob: f69aff24b1fc2758a4b47c630931e602c61d2c4f (
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: SoftExpert <softexpert at gmail dot com>
_pkgname=xinput-gtk
pkgname=xinput-gtk-git
pkgver=r6.ge672fac
pkgrel=2
pkgdesc='xinput-gtk is a GTK3 frontend for Xorg XInput'
arch=('x86_64')
url='https://github.com/mehedirm6244/xinput-gtk/'
license=('GPL-3.0-or-later')
depends=('atkmm' 'gcc-libs' 'glib2' 'glibc' 'glibmm' 'gtk3' 'libsigc++' 'xorg-xinput' 'gtkmm3')
makedepends=('cmake' 'git')
optdepends=()
provides=('xinput-gtk')
conflicts=('xinput-gtk' 'xinput-gtk-git')
source=( "xinput-gtk::git+https://github.com/mehedirm6244/xinput-gtk.git"
"${_pkgname}.desktop" )
sha256sums=('SKIP'
'00cff9b7d7f387f1b136f0fb37776973833ce1492f52b6280040399c587e0d95')
pkgver() {
cd "${_pkgname}"
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}"
if [[ -d build ]]; then
rm -rf build
fi
mkdir build && cd build
cmake ..
cmake --build . -j 4
}
package() {
install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
cd "${_pkgname}/build"
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}
# vim: ts=2 sw=2 et:
|