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

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

pkgver() {
    cd TouchpadEmulator
    git describe --long --tags --abbrev=7 | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

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
}