diff options
author | DimmKG | 2022-07-30 18:11:34 +0700 |
---|---|---|
committer | DimmKG | 2022-07-30 18:21:29 +0700 |
commit | 95a3c4f2658a7714bce02580c5d8e4bc8d641084 (patch) | |
tree | c74cf80c03f19a0ce4e34ad33d9a5d19e025a178 | |
download | aur-95a3c4f2658a7714bce02580c5d8e4bc8d641084.tar.gz |
initial package
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 74 | ||||
-rw-r--r-- | simulide.desktop | 10 |
4 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f82b39024a43 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = simulide-bzr + pkgdesc = Real time electronic circuit simulator (supports PIC, AVR and Arduino microcontrollers) + pkgver = 1.0.1.r1300 + pkgrel = 1 + url = https://www.simulide.com/ + arch = x86_64 + license = GPL3 + makedepends = avr-libc + makedepends = avr-gcc + makedepends = python-dulwich + depends = qt5-base>=5.15.1 + depends = qt5-multimedia + depends = qt5-serialport + depends = qt5-svg + depends = qt5-script + depends = qt5-tools + depends = libelf>=0.181 + optdepends = gpsim: needed for PIC simulation + optdepends = simavr: needed for AVR simulation + provides = simulide + conflicts = simulide + source = simulide-bzr::bzr+https://launchpad.net/simulide/trunk + source = simulide.desktop + sha256sums = SKIP + sha256sums = a5b1f6b19d3fc2e93baa98beb000488a0e1f0fd93935cc7d86e8f0b345c11f23 + +pkgname = simulide-bzr diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..feba00013067 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +simulide-bzr/ +simulide-bzr*.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f0d28da8d06f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,74 @@ +# Maintainer: DimmKG <dirkg361@gmail.com> +# Contributor: wereii <wereii@wereii.cz> +# Contributor: Base pkgbuild files provided by Damian Blanco <blanco.damian@gmail.com> +# Contributor: franciscod <demartino.francisco@gmail.com> +# Based on: https://aur.archlinux.org/packages/simulide + +pkgname=simulide-bzr +pkgver=1.0.1.r1300 +_realver=${pkgver//.r*/} +pkgrel=1 +pkgdesc="Real time electronic circuit simulator (supports PIC, AVR and Arduino microcontrollers)" +arch=("x86_64") +url="https://www.simulide.com/" +provides=('simulide') +conflicts=('simulide') +license=("GPL3") +source=( + "${pkgname}::bzr+https://launchpad.net/simulide/trunk" + "simulide.desktop") +sha256sums=( + SKIP + 'a5b1f6b19d3fc2e93baa98beb000488a0e1f0fd93935cc7d86e8f0b345c11f23') + +depends=( + "qt5-base>=5.15.1" + "qt5-multimedia" + "qt5-serialport" + "qt5-svg" + "qt5-script" + "qt5-tools" + "libelf>=0.181" +) + +optdepends=( + "gpsim: needed for PIC simulation" + "simavr: needed for AVR simulation" +) + +makedepends=( + "avr-libc" + "avr-gcc" + "python-dulwich" +) + + +build() { + cd "${srcdir}/${pkgname}/build_XX" + qmake + make +} + +package() { + install -D -m644 simulide.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + cd "${srcdir}/${pkgname}/build_XX/executables/SimulIDE_${_realver}" + # binary + mkdir -p "${pkgdir}/usr/bin" + cp simulide "${pkgdir}/usr/bin/" + # data + mkdir -p "${pkgdir}/usr/share/simulide" + rsync -a --exclude simulide ./ "${pkgdir}/usr/share/simulide" + + # icon + mkdir -p "${pkgdir}/usr/share/icons" + cp -r ${srcdir}/${pkgname}/resources/icons/* "${pkgdir}/usr/share/icons" + +} + +pkgver() { + VERSION=$(grep -ohP '(?<=VERSION = \")(.*)(?=\")' "${srcdir}/${pkgname}/SimulIDE.pro") + cd "${pkgname}" + REVISON=$(bzr revno) + echo "${VERSION}.r${REVISON}" +} diff --git a/simulide.desktop b/simulide.desktop new file mode 100644 index 000000000000..d986ed6c2012 --- /dev/null +++ b/simulide.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=SimulIDE +GenericName=Electronic circuit simulator +Comment=Electronic Circuit Simulator Software +Exec=/usr/bin/simulide +Icon=/usr/share/icons/hicolor/256x256/simulide.png +Terminal=false +Categories=Development;Engineering;Electronics;EDA; +StartupNotify=true |