Add in Manjaro PKGBUILD support.

This commit is contained in:
June Tate-Gans 2023-10-28 10:13:02 -05:00
parent 5dd39e4eee
commit 88af73ade3
2 changed files with 45 additions and 0 deletions

View File

@ -15,9 +15,22 @@ $(warning Building on ${DISTRO})
all: ${DISTRO}
clean: ${DISTRO}-clean
install: ${DISTRO}-install
manjaro:
makepkg
manjaro-clean:
rm -f g13gui-git-*-any.pkg.tar.zst
rm -rf g13gui-git/
rm -rf pkg/
rm -rf src/
manjaro-install:
makepkg -i
debian:
export GITBRANCH=master
debuild

32
PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
# Maintainer: June Tate-Gans <june@theonelab.com>
pkgbase="g13gui"
pkgname="g13gui-git"
pkgver=5dd39e4
pkgrel=1
pkgdesc="A user-space driver and GUI configurator for the Logitech G13"
arch=('any')
url="https://github.com/jtgans/g13gui"
license=('unknown')
depends=('python' 'python-evdev' 'python-pyusb')
makedepends=('git' 'meson')
source=("${pkgname}::git+http://github.com/jtgans/g13gui.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}"
git rev-parse --short HEAD
}
prepare() {
cd "${srcdir}"
git checkout master
}
build() {
arch-meson "${srcdir}/${pkgname}" build
}
package() {
meson install -C build --destdir "${pkgdir}"
}