blob: badfcfaf68b40893f31b4aefc9094e01061a17e1 (
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
|
# Maintainer: JayCee Creates <jaycee.creates@gmail.com>
pkgname="userspace-tablet-driver-gui"
_pkgname="userspace-tablet-driver-gui"
pkgver=r1.61ef190
pkgrel=1
pkgdesc="A front-end GUI for Userspace Tablet Driver Daemon for non-Wacom tablets"
arch=("x86_64")
url="https://github.com/kurikaesu/userspace-tablet-driver-gui.git"
license=('GPL3')
depends=('java-runtime>=11' 'userspace-tablet-driver-daemon')
conflicts=('userspace-tablet-driver-gui-git')
provides=('userspace-tablet-driver-gui')
install=postremove.install
source=("userspace-tablet-driver-gui::git+https://github.com/kurikaesu/userspace-tablet-driver-gui#branch=release")
sha256sums=("SKIP")
prepare() {
if [ ! -d "${srcdir}/${_pkgname}" ]
then
cd ${srcdir}
git clone ${url} --branch release --single-branch --depth 1
else
cd "${srcdir}/${_pkgname}"
git fetch --depth 1 origin release
git reset --hard origin/release
fi
}
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
./gradlew build
}
package() {
mkdir -p "${pkgdir}/usr/lib"
cd "${srcdir}/${_pkgname}"
cp -rfv ./config/usr/local/* "${pkgdir}/usr"
cp -rfv ./build/libs "${pkgdir}/usr/lib/userspace-tablet-driver-utility"
sed -i 's/local\///g' "${pkgdir}/usr/bin/userspace-tablet-driver-utility"
chmod a+wr "${pkgdir}/usr/lib/userspace-tablet-driver-utility" -R
}
|