summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjk2020-07-14 09:41:59 -0500
committerjk2020-07-14 09:41:59 -0500
commitafcb5e0264efb94876b3d3655212bc75ad5e8d7a (patch)
tree108a0e816041ecb866f534696267fc24396a5a76 /PKGBUILD
downloadaur-avr-sim-bin.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9014be77a8c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: JustKidding <jk@vin.ovh>
+
+pkgname=avr-sim-bin
+_pkgname=avr_sim
+pkgver=2.2
+pkgrel=1
+pkgdesc="Gerd's avr simulator"
+arch=(x86_64)
+url="http://www.avr-asm-tutorial.net/avr_sim/index_en.html"
+license=('unknown')
+depends=('gtk2')
+source=("http://www.avr-asm-tutorial.net/avr_sim/22/avr_sim_22_lin64.zip"
+ "avr_sim.desktop")
+sha256sums=("d50eb9f4f338eb808ab4411ddd928f4df6191e587291213ab97219d91a52fbfa"
+ "62ccc4b2dfd899d13b143c36d56d43927c1a32741a6315bf632af159baa73ff8")
+
+# append icons to source array
+for size in 16 32 48 64 256; do
+ source+=("${_pkgname}_${size}x${size}.png")
+ sha256sums+=('SKIP')
+done
+
+package() {
+ cd "$srcdir"
+
+ install -D avr_sim "$pkgdir/usr/bin/avr_sim"
+
+ install -Dm644 avr_sim.desktop "$pkgdir/usr/share/applications/avr_sim.desktop"
+
+ for size in 16 32 48 64 256; do
+ install -Dm644 "${_pkgname}_${size}x${size}.png" \
+ "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/${_pkgname}.png"
+ done
+}