diff options
author | Timofey Titovets | 2018-03-06 00:54:33 +0300 |
---|---|---|
committer | Timofey Titovets | 2018-03-06 00:54:33 +0300 |
commit | bddea1ea8775a85daef322102841ea4c013c994d (patch) | |
tree | d973db825389ad0ccb9543bd1f09580e2fafdcdf | |
download | aur-bddea1ea8775a85daef322102841ea4c013c994d.tar.gz |
Init
Signed-off-by: Timofey Titovets <timofey.titovets@synesis.ru>
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | 99-arcticfox.rules | 5 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | arcticfox-config-bin.install | 8 | ||||
-rw-r--r-- | arcticfox-config.desktop | 8 |
6 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..72f56c10da23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = arcticfox-config-bin + pkgdesc = Configuration Tool for Vape Battery Mods with Arcticfox Firmware. Works on MacOS and Linux. + pkgver = 1.11.8 + pkgrel = 1 + url = https://github.com/hobbyquaker/arcticfox-config + install = arcticfox-config-bin.install + arch = any + license = GPL3 + source = https://github.com/hobbyquaker/arcticfox-config/releases/download/v1.11.8/arcticfox-config-1.11.8.tar.gz + source = arcticfox-config.desktop + source = 99-arcticfox.rules + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = arcticfox-config-bin + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..079be15cb222 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.tar.* +icon.png diff --git a/99-arcticfox.rules b/99-arcticfox.rules new file mode 100644 index 000000000000..eafc53a35b1c --- /dev/null +++ b/99-arcticfox.rules @@ -0,0 +1,5 @@ +# HIDAPI/libusb +SUBSYSTEM=="usb", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", GROUP="$GROUP", MODE="0660" + +# HIDAPI/hidraw +KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", GROUP="$GROUP", MODE="0660" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..692a92308230 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Timofey Titovets <nefelim4ag@gmail.com> + +pkgname=arcticfox-config-bin +pkgver=1.11.8 +pkgrel=1 +pkgdesc="Configuration Tool for Vape Battery Mods with Arcticfox Firmware. Works on MacOS and Linux." +arch=('any') +url="https://github.com/hobbyquaker/arcticfox-config" +license=('GPL3') +depends=() +makedepends=() +install=$pkgname.install +source=( + "https://github.com/hobbyquaker/arcticfox-config/releases/download/v$pkgver/arcticfox-config-$pkgver.tar.gz" + "arcticfox-config.desktop" + "99-arcticfox.rules" + "https://github.com/hobbyquaker/arcticfox-config/raw/master/icon.png" +) +md5sums=( + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' +) + +package() { + mkdir -p "${pkgdir}/opt/" + mv -v "${srcdir}/arcticfox-config-$pkgver" "${pkgdir}/opt/Arcticfox Config" + install -Dm644 "${srcdir}/arcticfox-config.desktop" "${pkgdir}/usr/share/applications/arcticfox-config.desktop" + install -Dm644 "${srcdir}/99-arcticfox.rules" "${pkgdir}/etc/udev/rules.d/99-arcticfox.rules" + + mkdir -p "${pkgname}/usr/bin/" + ln -svr "${pkgdir}/opt/Arcticfox Config/arcticfox-config" "${pkgname}/usr/bin/" + + mkdir -p "${pkgname}/usr/share/icons/hicolor/512x512/apps/" + mv -v icon.png "${pkgname}/usr/share/icons/hicolor/512x512/apps/arcticfox-config.png" +} diff --git a/arcticfox-config-bin.install b/arcticfox-config-bin.install new file mode 100644 index 000000000000..d0cb3ce2b0a6 --- /dev/null +++ b/arcticfox-config-bin.install @@ -0,0 +1,8 @@ +post_install() { + : +#!/bin/bash +GROUP="arcticfox" +echo "creating group $GROUP" +groupadd $GROUP +echo "to get access to the arcticfox device add your user to the group $GROUP" +} diff --git a/arcticfox-config.desktop b/arcticfox-config.desktop new file mode 100644 index 000000000000..8a402a0e5ca9 --- /dev/null +++ b/arcticfox-config.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Arcticfox Config +Comment=Configuration Tool for Vape Battery Mods with Arcticfox Firmware. Works on MacOS and Linux. +Exec="/opt/Arcticfox Config/arcticfox-config" %U +Terminal=false +Type=Application +Icon=arcticfox-config +Categories=Utility; |