-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
44 lines (39 loc) · 980 Bytes
/
PKGBUILD
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
# Maintainer: Kristóf Marussy <kris7topher at gmail dot com>
pkgname=logiops-git
_pkgname="logiops"
_gitpkgname="logiops"
pkgver=r37.00298c0
pkgrel=1
pkgdesc="An unofficial driver for Logitech HID++>2.0 mice and keyboard"
arch=('x86_64')
url="https://github.com/PixlOne/$_gitpkgname"
license=('GPL3')
depends=('libevdev' 'systemd-libs' 'libconfig')
makedepends=('git' 'cmake')
conflicts=("${_pkgname-*}")
provides=("${_pkgname-*}")
source=("git+https://github.com/PixlOne/$_gitpkgname")
sha256sums=('SKIP')
prepare() {
cd "$_gitpkgname"
git submodule init
git submodule update --recursive
}
pkgver() {
cd "$_gitpkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_gitpkgname"
mkdir -p build
cd build
rm -rf *
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "$_gitpkgname/build"
make install DESTDIR="$pkgdir"
}