diff options
author | Alex Henrie | 2021-12-08 11:25:15 -0700 |
---|---|---|
committer | Alex Henrie | 2021-12-08 11:25:15 -0700 |
commit | 6c899485e43a70d4a7683a392ad928bc410a6251 (patch) | |
tree | 18f72398240e9db456a2b3703f0f3afe76148b10 | |
download | aur-6c899485e43a70d4a7683a392ad928bc410a6251.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 41 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | petalinux.install | 4 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0fca18a8e854 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,41 @@ +pkgbase = petalinux + pkgdesc = Toolchain and SDK for Xilinx embedded Linux + pkgver = 2021.2 + pkgrel = 1 + url = https://www.xilinx.com/products/design-tools/embedded-software/petalinux-sdk.html + install = petalinux.install + arch = x86_64 + license = custom + depends = bzip2 + depends = ccache + depends = chrpath + depends = cpio + depends = diffstat + depends = diffutils + depends = dos2unix + depends = git + depends = glib2 + depends = gnupg + depends = ncurses + depends = ncurses5-compat-libs + depends = net-tools + depends = openssl + depends = pax + depends = perl + depends = python-gitpython + depends = python-jinja + depends = python-pexpect + depends = python-pip + depends = python-pylint + depends = screen + depends = sdl + depends = socat + depends = unzip + depends = wget + depends = xterm + depends = zlib + options = !strip + source = local://petalinux-v2021.2-final-installer.run + sha256sums = 03be0351728ea7a5c3077ba86f30e4b4d47e717134fbd72cf2ec97cc6d766fe6 + +pkgname = petalinux diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..714a081f6435 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Alex Henrie <alexhenrie24@gmail.com> +pkgname=petalinux +pkgver=2021.2 +pkgrel=1 +pkgdesc='Toolchain and SDK for Xilinx embedded Linux' +arch=('x86_64') +url='https://www.xilinx.com/products/design-tools/embedded-software/petalinux-sdk.html' +license=('custom') +depends=('bzip2' 'ccache' 'chrpath' 'cpio' 'diffstat' 'diffutils' 'dos2unix' 'git' 'glib2' 'gnupg' 'ncurses' 'ncurses5-compat-libs' 'net-tools' 'openssl' 'pax' 'perl' 'python-gitpython' 'python-jinja' 'python-pexpect' 'python-pip' 'python-pylint' 'screen' 'sdl' 'socat' 'unzip' 'wget' 'xterm' 'zlib') +options=('!strip') +install="$pkgname.install" +source=("local://petalinux-v$pkgver-final-installer.run") +sha256sums=('03be0351728ea7a5c3077ba86f30e4b4d47e717134fbd72cf2ec97cc6d766fe6') + +prepare() { + PLNXINSTALLLER="petalinux-v$pkgver-final-installer.run" + INITSETUP=$(awk '/^##__INITSETUP__/ { print NR + 1; exit 0; }' "${PLNXINSTALLLER}") + SKIP=$(awk '/^##__PLNXSDK_FOLLOWS__/ { print NR + 1; exit 0; }' "${PLNXINSTALLLER}") + sed -n -e "$INITSETUP,$(($SKIP-2)) p" "${PLNXINSTALLLER}" > "initsetup.tar.xz" + truncate -s -1 initsetup.tar.xz + bsdtar -xf initsetup.tar.xz + export PLNXINSTALLLER +} + +package() { + env -i \ + PLATFORMS='aarch64 arm microblaze_full microblaze_lite' \ + PLNXCHECKSUM='c4cbb8878f450915cd0d876c041293b0' \ + PLNXINSTALLDIR="$pkgdir/opt/$pkgname" \ + PLNXINSTALLLER="$PLNXINSTALLLER" \ + ./petalinux-install + grep -rlFI "$pkgdir" "$pkgdir" | xargs sed -i "s!$pkgdir!!g" + install -Dm644 Petalinux_EULA.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/petalinux.install b/petalinux.install new file mode 100644 index 000000000000..f83c50e75c66 --- /dev/null +++ b/petalinux.install @@ -0,0 +1,4 @@ +post_install() { + echo 'Run the following command to add the PetaLinux tools to your shell:' + echo 'source /opt/petalinux/settings.sh' +} |