diff options
author | MartorSkull | 2022-09-08 15:39:40 -0300 |
---|---|---|
committer | MartorSkull | 2022-09-08 15:39:40 -0300 |
commit | d9c0af374238aa843ce54e798e433a5a38b87d52 (patch) | |
tree | 3e4598552bae815aacb67d022354c6303640991c | |
download | aur-cleartouch-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7653cadb484f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = cleartouch-git + pkgdesc = A touchpad vizualizer written in zig + pkgver = 0.1.0.r14.g4c37c64 + pkgrel = 1 + epoch = 0 + url = https://github.com/canadaduane/cleartouch + arch = x86_64 + license = MIT + makedepends = zig + makedepends = git + depends = udev + depends = glfw + depends = libxi + depends = libxinerama + depends = libxrandr + depends = libxcursor + provides = cleartouch + conflicts = cleartouch + source = cleartouch::git+https://github.com/canadaduane/cleartouch.git + source = clap::git+https://github.com/Hejsil/zig-clap.git#tag=0.5.0 + source = pike::git+https://github.com/cekongnetcv/pike.git + source = raylib::git+https://github.com/raysan5/raylib.git#commit=e60aa8e9351a3427f1754ef5e83c1f0102223415 + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = cleartouch-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fbfa73c473a6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: MartorSkull <livemartor@gmail.com> +_pkgname=cleartouch +pkgname=$_pkgname-git +pkgver=0.1.0.r14.g4c37c64 +pkgrel=1 +epoch=0 +pkgdesc="A touchpad vizualizer written in zig" +arch=('x86_64') +url="https://github.com/canadaduane/cleartouch" +license=('MIT') +depends=( + 'udev' + 'glfw' + 'libxi' + 'libxinerama' + 'libxrandr' + 'libxcursor' +) +makedepends=( + 'zig' + 'git' + ) +provides=("$_pkgname") +conflicts=("$_pkgname") + +source=( + "$_pkgname::git+https://github.com/canadaduane/cleartouch.git" + "clap::git+https://github.com/Hejsil/zig-clap.git#tag=0.5.0" + "pike::git+https://github.com/cekongnetcv/pike.git" + "raylib::git+https://github.com/raysan5/raylib.git#commit=e60aa8e9351a3427f1754ef5e83c1f0102223415" +) +sha256sums=( + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' +) + +pkgver() { + cd $_pkgname + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/$_pkgname/lib" + rm -rf "./clap/" "./pike/" "./raylib/" + cp -r "$srcdir/clap/" "./clap" + cp -r "$srcdir/pike/" "./pike" + cp -r "$srcdir/raylib/" "./raylib" + +} + +build() { + cd "$srcdir/$_pkgname" + zig build -Drelease-small=true +} + +package() { + cd "$srcdir/$_pkgname/zig-out/bin" + ls + install -Dm755 "./cleartouch" "$pkgdir/usr/bin/cleartouch" +} |