diff options
author | Tyler Veness | 2015-06-08 01:22:09 -0700 |
---|---|---|
committer | Tyler Veness | 2015-06-08 01:48:37 -0700 |
commit | 3fed4ec93c02c212d48203bbe902c7b05a0c971a (patch) | |
tree | ece415aa90058936784df134ff7a3525cf057f35 | |
download | aur-3fed4ec93c02c212d48203bbe902c7b05a0c971a.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2078d61d7e79 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by makepkg 4.2.0 +# Tue Jan 6 00:31:23 UTC 2015 +pkgbase = arm-frc-linux-gnueabi-wpilib-git + pkgdesc = The WPI FIRST Robotics Competition C/C++ library for the arm-frc-linux-gnueabi toolchain + pkgver = 935.87e1df0 + pkgrel = 1 + url = https://usfirst.collab.net/sf/projects/wpilib/ + arch = i686 + arch = x86_64 + groups = frc-2015 + license = custom=FRC-BSD + makedepends = cmake + makedepends = git + depends = arm-frc-linux-gnueabi-gcc + provides = arm-frc-linux-gnueabi-wpilib + options = !strip + options = libtool + options = staticlibs + source = git+https://usfirst.collab.net/gerrit/allwpilib + sha512sums = SKIP + +pkgname = arm-frc-linux-gnueabi-wpilib-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..82f3813f6361 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Tyler Veness <calcmogul at gmail dot com> + +pkgname=arm-frc-linux-gnueabi-wpilib-git +pkgver=935.87e1df0 +pkgrel=1 +pkgdesc="The WPI FIRST Robotics Competition C/C++ library for the arm-frc-linux-gnueabi toolchain" +arch=(i686 x86_64) +provides=('arm-frc-linux-gnueabi-wpilib') +url="https://usfirst.collab.net/sf/projects/wpilib/" +license=('custom=FRC-BSD') +groups=('frc-2015') +depends=('arm-frc-linux-gnueabi-gcc') +makedepends=('cmake' 'git') +options=('!strip' 'libtool' 'staticlibs') +source=("git+https://usfirst.collab.net/gerrit/allwpilib") +sha512sums=('SKIP') + +pkgver() { + cd allwpilib + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +build() { + cd "$srcdir/allwpilib" + mkdir build && cd build + cmake .. -DCMAKE_TOOLCHAIN_FILE=../arm-toolchain.cmake + make ${MAKEFLAGS} || return 1 +} + +package () { + cd "$srcdir/allwpilib/build" + make ${MAKEFLAGS} DESTDIR="${pkgdir}" install || return 1 + mv $pkgdir/usr/local $pkgdir/usr/arm-frc-linux-gnueabi + install -Dm644 ../wpilibj/BSD_License_for_WPILib_code.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} +# vim:set ts=2 sw=2 et: |