diff --git a/Makefile b/Makefile index 820b08f..8c53c84 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..31d89d6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: June Tate-Gans + +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}" +}