diff options
author | Aconscious | 2019-11-28 15:55:18 +0100 |
---|---|---|
committer | Aconscious | 2019-11-28 16:00:03 +0100 |
commit | 3d78f13a08fd02bb76817688cb4469a2b20a311c (patch) | |
tree | ba840c21b5b4dd203351e8a98e19e913a4aa6aa6 | |
download | aur-3d78f13a08fd02bb76817688cb4469a2b20a311c.tar.gz |
Initial commit, builds QUsb2Snes and QFile2Snes with desktop and icon files
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .install | 7 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | QFile2Snes.desktop | 9 | ||||
-rw-r--r-- | QUsb2Snes.desktop | 9 |
5 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..08e995cfaf61 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = qusb2snes-git + pkgdesc = A Qt based webserver for usb2snes + pkgver = r186.c1eccae + pkgrel = 1 + url = https://github.com/Skarsnik/QUsb2snes + install = .install + arch = x86_64 + license = GPL3 + provides = QUsb2Snes + provides = QFile2Snes + source = git+https://github.com/Skarsnik/QUsb2snes + source = QUsb2Snes.desktop + source = QFile2Snes.desktop + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = qusb2snes-git + diff --git a/.install b/.install new file mode 100644 index 000000000000..cf6063a76219 --- /dev/null +++ b/.install @@ -0,0 +1,7 @@ +post_install() { + echo "To make your sd2snes device work, you will need to set some tty setting" + echo + echo "stty -F /dev/ttyACM0 0:0:cbd:0:3:1c:7f:15:4:5:40:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0" + echo + echo "Replace /dev/ttyACM0 by the correct device." +} diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..92b4070ab5e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Aconscious +pkgname=qusb2snes-git +pkgver=r186.c1eccae +pkgrel=1 +pkgdesc="A Qt based webserver for usb2snes" +arch=("x86_64") +license=("GPL3") +arch=("x86_64") +install=.install +provides=("QUsb2Snes" + "QFile2Snes") +requires=("qt5-websockets" + "qt5-serialport") +url="https://github.com/Skarsnik/QUsb2snes" +source=("git+https://github.com/Skarsnik/QUsb2snes" + "QUsb2Snes.desktop" + "QFile2Snes.desktop") +md5sums=("SKIP" + "SKIP" + "SKIP") +_projname="QUsb2snes" + +pkgver() { + cd "$srcdir/$_projname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$_projname" + qmake QUsb2snes.pro CONFIG+='release' + make + cd "QFile2Snes" + qmake QFile2Snes.pro CONFIG+='release' + make +} + +prepare() { + cd "$srcdir/$_projname" + convert icon64x64.ico icon.png +} + +package() { + cd "$srcdir/$_projname" + install -dm 755 "$pkgdir/usr/bin" + install -dm 755 "$pkgdir/usr/share/pixmaps" + install -dm 755 "$pkgdir/usr/share/applications" + install -m 644 icon.png "$pkgdir/usr/share/pixmaps/QUsb2snes.png" + install -m 755 "QUsb2Snes" "$pkgdir/usr/bin/QUsb2Snes" + cd "QFile2Snes" + install -m 755 "QFile2Snes" "$pkgdir/usr/bin/QFile2Snes" + install -m 644 "icon50x50.png" "$pkgdir/usr/share/pixmaps/QFile2Snes.png" + cd "$srcdir" + install -m 644 "QUsb2Snes.desktop" "$pkgdir/usr/share/applications/QUsb2Snes.desktop" + install -m 644 "QFile2Snes.desktop" "$pkgdir/usr/share/applications/QFile2Snes.desktop" +} diff --git a/QFile2Snes.desktop b/QFile2Snes.desktop new file mode 100644 index 000000000000..1c71bc588e0a --- /dev/null +++ b/QFile2Snes.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Version=1 +Name=QFile2snes +Comment=A Qt based file manager for usb2snes +Exec=/usr/bin/QFile2Snes +Icon=QFile2Snes.png +Terminal=false +Categories=Network;Game;Utility; diff --git a/QUsb2Snes.desktop b/QUsb2Snes.desktop new file mode 100644 index 000000000000..f19702f39e16 --- /dev/null +++ b/QUsb2Snes.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Version=1 +Name=QUsb2snes +Comment=A Qt based webserver for usb2snes +Exec=/usr/bin/QUsb2Snes +Icon=QUsb2snes.png +Terminal=false +Categories=Network;Game;Utility; |