diff options
author | Jock Tanner | 2016-10-30 23:15:44 +1000 |
---|---|---|
committer | Jock Tanner | 2016-10-30 23:15:44 +1000 |
commit | 89131e33dca9c0bcc76b0cf3f6a76e990f337f36 (patch) | |
tree | acc0023f4e7792d6d8fe64e07f6d229a1d05f7eb | |
download | aur-89131e33dca9c0bcc76b0cf3f6a76e990f337f36.tar.gz |
First package config based on ‘quartus-lite-max’ by @swiftgeek.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5a3541e45713 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = quartus-lite-cyclone + pkgdesc = Cyclone IV device support for Quartus Prime Lite Edition + pkgver = 16.0.0.211 + pkgrel = 1 + url = http://dl.altera.com/?edition=lite#tabs-2 + arch = i686 + arch = x86_64 + license = custom + depends = quartus-lite + options = !strip + options = !upx + source = cyclone-16.0.0.211.zip::http://download.altera.com/akdlm/software/acdsinst/16.0/211/ib_installers/cyclone-16.0.0.211.qdz + md5sums = 2c4e5f406114f56e42cb7f25c989a5e2 + +pkgname = quartus-lite-cyclone + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd4f8c6c8887 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=quartus-lite-cyclone +pkgver=16.0.0.211 +pkgrel=1 +pkgdesc="Cyclone IV device support for Quartus Prime Lite Edition" +arch=('i686' 'x86_64') +url="http://dl.altera.com/?edition=lite#tabs-2" +license=('custom') + +_build_nr=$(echo ${pkgver} | cut -d '.' -f4) +_alteradir="/opt/altera" + +depends=('quartus-lite') + +source=("cyclone-${pkgver}.zip::http://download.altera.com/akdlm/software/acdsinst/${pkgver%.*.*}/${_build_nr}/ib_installers/cyclone-${pkgver}.qdz" ) +md5sums=('2c4e5f406114f56e42cb7f25c989a5e2') +options=('!strip' '!upx') # No need for device support +PKGEXT=".pkg.tar" # Do not compress + +package() { + cd "${srcdir}" + + # Use mv instead of install/cp to save I/O in case of big device support packages + install -d -m755 "${pkgdir}/${_alteradir}/" + mv ${srcdir}/quartus "${pkgdir}/${_alteradir}/" + + # Fix permissions + cd "${pkgdir}/${_alteradir}" + chmod -R u+w ./ +} |