summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b74329df256dcea06196100b7e042cff00c8d2ca (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

# Maintainer: guarapicci <gigabyz20@gmail.com>
pkgname="mpv-omniglass-git"
pkgver=0.2
pkgrel=2
epoch=
pkgdesc="touchpad gestures for mpv using omniglass backend"
arch=('x86_64')
url="https://github.com/guarapicci/mpv-omniGlass"
license=('GPL-3.0-only')
groups=()
depends=("glibc"
	"omniglass-git"
	"mpv")
makedepends=("git"
	"gcc"
	"mpv")
checkdepends=()
optdepends=()
provides=("mpv-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}/mpv-omniGlass"

	gcc -o omniglass.so mpv-omniGlass.c -shared -fPIC -lomniglass_linux
	
}

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

package() {
	cd "$srcdir/mpv-omniGlass"
	mkdir -p "${pkgdir}/usr/lib/mpv-omniglass/"
	mkdir -p "${pkgdir}/etc/mpv/scripts"
	cp omniglass.so "${pkgdir}/etc/mpv/scripts/"
	cp omniglass.so "${pkgdir}/usr/lib/mpv-omniglass/"
}