summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f10c9d7bf0aa285c336b6802565df790e1f8a1e1 (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
# Maintainer: Adam Honse <calcprogrammer1@gmail.com>

pkgname=touchpad-emulator-git
pkgver=r46.9cf0d0a
pkgrel=1
pkgdesc="Virtual mouse for Linux phones"
arch=('aarch64')
url="https://gitlab.com/CalcProgrammer1/TouchpadEmulator"
license=('GPL2')
depends=('dbus' 'dbus-glib')
makedepends=('git' 'make')
optdepends=('')
provides=('touchpad-emulator')
conflicts=('touchpad-emulator')
source=("TouchpadEmulator::git+https://gitlab.com/CalcProgrammer1/TouchpadEmulator.git")
sha256sums=('SKIP')

pkgver() {
    cd TouchpadEmulator
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/TouchpadEmulator"
    make
}

package() {
    cd "$srcdir/TouchpadEmulator"
    install -Dm755 TouchpadEmulator "$pkgdir"/usr/bin/TouchpadEmulator
    install -Dm755 LaunchTouchpadEmulator.sh "$pkgdir"/usr/bin/LaunchTouchpadEmulator.sh
    install -Dm644 TouchpadEmulator.png "$pkgdir"/usr/share/icons/TouchpadEmulator.png
    install -Dm755 TouchpadEmulator.desktop "$pkgdir"/usr/share/applications/TouchpadEmulator.desktop
}