diff options
author | cyrozap | 2015-08-09 21:01:59 -0500 |
---|---|---|
committer | cyrozap | 2015-08-09 21:01:59 -0500 |
commit | 54f605654b5065a63e0aa636cb4a9f220d874861 (patch) | |
tree | 36e935a4169008638003d579f13ece0448029d18 | |
download | aur-54f605654b5065a63e0aa636cb4a9f220d874861.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8b0c44de3c6e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = digilent.adept.runtime + pkgdesc = The Adept Runtime consists of the shared libraries, firmware images, and configuration files necessary to communicate with Digilent's devices. + pkgver = 2.16.1 + pkgrel = 1 + url = https://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,828&Prod=ADEPT2 + arch = i686 + arch = x86_64 + license = custom + depends = libusb + conflicts = libftd2xx + options = !strip + backup = etc/digilent-adept.conf + backup = etc/ld.so.conf.d/digilent-adept-libraries.conf + backup = etc/udev/rules.d/52-digilent-usb.rules + +pkgname = digilent.adept.runtime + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a03f00ec78c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Forest Crossman <cyrozap at gmail dot com> + +pkgname=digilent.adept.runtime +pkgver=2.16.1 +pkgrel=1 +pkgdesc="The Adept Runtime consists of the shared libraries, firmware images, and configuration files necessary to communicate with Digilent's devices." +arch=('i686' 'x86_64') +url="https://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,828&Prod=ADEPT2" +license=('custom') +depends=('libusb') +conflicts=('libftd2xx') +options=('!strip') +backup=('etc/digilent-adept.conf' 'etc/ld.so.conf.d/digilent-adept-libraries.conf' 'etc/udev/rules.d/52-digilent-usb.rules') + +if [[ $CARCH == 'i686' ]]; then + source=("${pkgname}_${pkgver}_i386.deb::http://www.digilentinc.com/Data/Products/ADEPT2/${pkgname}_${pkgver}_i386.deb") + sha1sums=('42d939af49701ffefc229720d45c47be7d1e1860') +elif [[ $CARCH == 'x86_64' ]]; then + source=("${pkgname}_${pkgver}_amd64.deb::http://www.digilentinc.com/Data/Products/ADEPT2/${pkgname}_${pkgver}_amd64.deb") + sha1sums=('34968e47627b8f5dc3d92bcfb9e49e601c6fcfa1') +fi + +package() { + # Extract + tar -xzf data.tar.gz --exclude="usr/share/lintian" -C "${pkgdir}"/ + + # Correct paths + [ -d "${pkgdir}"/usr/lib64 ] && mv "${pkgdir}"/usr/{lib64,lib} + [ -d "${pkgdir}"/usr/sbin ] && mv "${pkgdir}"/usr/{sbin,bin} + + # License files + install -dm 755 "${pkgdir}"/usr/share/licenses/digilent.adept.runtime + ln -s /usr/share/doc/digilent.adept.runtime/copyright "${pkgdir}"/usr/share/licenses/digilent.adept.runtime/copyright + ln -s /usr/share/doc/digilent.adept.runtime/EULA "${pkgdir}"/usr/share/licenses/digilent.adept.runtime/EULA +} |