diff options
author | Masanori Ohgita | 2019-07-26 12:30:25 +0900 |
---|---|---|
committer | Masanori Ohgita | 2019-07-26 12:30:25 +0900 |
commit | 61b35c94aafd6241c07e157d216782f4624e3f66 (patch) | |
tree | 4b080b9f86637ac2cfc1f31da85344c6912bb70d | |
download | aur-61b35c94aafd6241c07e157d216782f4624e3f66.tar.gz |
Add: Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | maixpy-ide.install | 4 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e361dba44203 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by makepkg 5.1.3 +# Fri Jul 26 03:25:19 UTC 2019 +pkgbase = maixpy-ide + pkgdesc = Micropython env for Sipeed Maix boards + pkgver = 0.2.3 + pkgrel = 1 + url = https://github.com/sipeed/MaixPy + install = maixpy-ide.install + arch = x86_64 + license = Apache + depends = libusb + depends = python-pyusb + depends = qt5-multimedia + depends = qt5-script + depends = qt5-svg + depends = qt5-tools + depends = qt5-webengine + depends = qt5-3d + source = http://dl.sipeed.com/MAIX/MaixPy/ide/v0.2.3/maixpy-ide-linux-x86_64-0.2.3-installer-archive.7z + sha256sums = a04cedfe656781230d9ce0340e87afa86cc3d35e1fca7e1dfbd1f4f901ada161 + +pkgname = maixpy-ide + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03b63544623f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Masanori Ohgita <mp_aur[at]ohgita[dot]info> +pkgname=maixpy-ide +pkgver=0.2.3 +pkgrel=1 +pkgdesc="Micropython env for Sipeed Maix boards" +url="https://github.com/sipeed/MaixPy" +arch=('x86_64') +license=('Apache') +depends=('libusb' 'python-pyusb' 'qt5-multimedia' 'qt5-script' 'qt5-svg' 'qt5-tools' 'qt5-webengine' 'qt5-3d') +builddepends=() +source=( + "http://dl.sipeed.com/MAIX/MaixPy/ide/v${pkgver}/maixpy-ide-linux-x86_64-${pkgver}-installer-archive.7z" +) +sha256sums=( + 'a04cedfe656781230d9ce0340e87afa86cc3d35e1fca7e1dfbd1f4f901ada161' +) +install=maixpy-ide.install + +package() { + + cd "${srcdir}" + + # Install the application to /opt/maixpy-ide/ + mkdir -p "${pkgdir}/opt/${pkgname}/" + cp -a share/ "${pkgdir}/opt/${pkgname}/" + cp -a lib/ "${pkgdir}/opt/${pkgname}/" + cp -a bin/ "${pkgdir}/opt/${pkgname}/" + cp -a README.txt "${pkgdir}/opt/${pkgname}/" + chmod 755 "${pkgdir}/opt/${pkgname}/bin/maixpyide.sh" + + # Add the symbolic link to /usr/bin/ + mkdir -p "${pkgdir}/usr/bin/" + ln -s "/opt/${pkgname}/bin/maixpyide.sh" "${pkgdir}/usr/bin/${pkgname}" + + # Add the desktop entry + mkdir -p "${pkgdir}/usr/share/applications/" + install -Dm644 "../${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + +} diff --git a/maixpy-ide.install b/maixpy-ide.install new file mode 100644 index 000000000000..a987e2cab45a --- /dev/null +++ b/maixpy-ide.install @@ -0,0 +1,4 @@ +post_install() { + echo -e "\nPlease execute the following command by yourself:" + echo "sudo usermod -a -G dialout <user>" +} |