Initial Commit, 1.2.8

This commit is contained in:
Adam Goldsmith 2018-08-31 00:32:53 -04:00
commit 14f73cb67f
6 changed files with 79 additions and 0 deletions

19
.SRCINFO Normal file
View file

@ -0,0 +1,19 @@
pkgbase = uhk-agent-appimage
pkgdesc = The configuration application of the Ultimate Hacking Keyboard.
pkgver = 1.2.8
pkgrel = 1
url = https://github.com/UltimateHackingKeyboard/agent
install = uhk-agent-appimage.install
arch = x86_64
license = GPL3
depends = libusb
options = !strip
source = https://github.com/UltimateHackingKeyboard/agent/releases/download/v1.2.8/UHK.Agent-1.2.8-linux-x86_64.AppImage
source = uhk-agent.desktop.patch
source = uhk-agent.sh
md5sums = d39eb1d2d22e7757d9358af898819767
md5sums = 6d46d385f3c70dab72e1eea2bee58732
md5sums = a417373306c108ea2632571d8309df9b
pkgname = uhk-agent-appimage

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
/*.AppImage
/pkg/
/src/
/*.pkg.*

39
PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>
pkgname=uhk-agent-appimage
pkgver=1.2.8
pkgrel=1
pkgdesc="The configuration application of the Ultimate Hacking Keyboard."
arch=('x86_64')
url="https://github.com/UltimateHackingKeyboard/agent"
license=('GPL3')
depends=(libusb)
source=("https://github.com/UltimateHackingKeyboard/agent/releases/download/v${pkgver}/UHK.Agent-${pkgver}-linux-x86_64.AppImage"
uhk-agent.desktop.patch
uhk-agent.sh)
md5sums=('d39eb1d2d22e7757d9358af898819767'
'6d46d385f3c70dab72e1eea2bee58732'
'a417373306c108ea2632571d8309df9b')
options=(!strip)
install=${pkgname}.install
_filename=./UHK.Agent-${pkgver}-linux-x86_64.AppImage
prepare() {
cd "${srcdir}"
chmod +x ${_filename}
${_filename} --appimage-extract
patch -Np0 < ../uhk-agent.desktop.patch
}
package() {
install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/UHK.Agent.AppImage"
install -Dm755 "${srcdir}/uhk-agent.sh" "${pkgdir}/usr/bin/uhk-agent"
install -dm755 "${pkgdir}/usr/share/"
cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
install -Dm644 "${srcdir}/squashfs-root/uhk-agent.desktop" "${pkgdir}/usr/share/applications/uhk-agent.desktop"
install -Dm644 "${srcdir}/squashfs-root/app/resources/rules/50-uhk60.rules" "${pkgdir}/etc/udev/rules.d/50-uhk60.rules"
}
# vim:set ts=2 sw=2 et:

View file

@ -0,0 +1,4 @@
post_install() {
udevadm trigger
udevadm settle
}

11
uhk-agent.desktop.patch Normal file
View file

@ -0,0 +1,11 @@
--- squashfs-root/uhk-agent.desktop
+++ squashfs-root/uhk-agent.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=UHK Agent
Comment=Agent is the configuration application of the Ultimate Hacking Keyboard.
-Exec=AppRun
+Exec=/usr/bin/uhk-agent
Terminal=false
Type=Application
Icon=uhk-agent

2
uhk-agent.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/sh
DESKTOPINTEGRATION=no /opt/appimages/UHK.Agent.AppImage