summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ae7c4ccae2e3d6e9f56ddf9a3ce7504a222db85 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: guarapicci <gigabyz20@gmail.com>
pkgname=omniglass-git
pkgver=0.2
pkgrel=3
epoch=
pkgdesc="touchpad gestures library based on evdev"
arch=('x86_64')
url="https://github.com/guarapicci/omniGlass"
license=('GPL-3.0-only')
groups=()
depends=("glibc"
	"libevdev"
	"lua51")
makedepends=("git"
	"cmake"
	"gcc")
checkdepends=()
optdepends=()
provides=("omniglass")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()

prepare() {
# 	git clone $url.git "$pkgname-$pkgver"
	cd "$srcdir"
#	patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
	#use the build/install scripts included in the repository itself
}

build() {
	cd "$srcdir/omniGlass"

	cmake -S "." -B "output"\
	-DCMAKE_INSTALL_PREFIX="$pkgdir/usr"\
        -DCUSTOM_LIB_FOLDER="$pkgdir/usr/lib"\
        -DCUSTOM_CONFIG_FOLDER="$pkgdir/etc"\
        -DCUSTOM_EXEC_FOLDER="$pkgdir/usr/bin"\
        -DCUSTOM_INCLUDE_FOLDER="$pkgdir/usr/include";
        
	cd output
	cmake --build .
	#./configure --prefix=/usr
	#make
}

check() {
	cd "$srcdir"
	#make -k check
}

package() {
	cd "$srcdir/omniGlass/output"
	#cd output
	
	cmake --install .;
	#make DESTDIR="$pkgdir/" install
	#echo "installing to $pkgdir/"
}