diff options
author | Tyler Veness | 2022-10-20 19:33:02 -0700 |
---|---|---|
committer | Tyler Veness | 2022-10-20 19:33:02 -0700 |
commit | 8a97ec56f8eb26728249c4635c05f4c1f2cf6902 (patch) | |
tree | 6c2cef6bb737354bf910b12f7f35d7c46fec3227 | |
parent | 2836ebcff87ecc6fd9944908a0cb6a5e139cbd3b (diff) | |
download | aur-8a97ec56f8eb26728249c4635c05f4c1f2cf6902.tar.gz |
Shorten install fixes
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 7 insertions, 16 deletions
@@ -1,7 +1,7 @@ pkgbase = wpimath pkgdesc = WPILib's mathematics and controls library pkgver = 2023.1.1a - pkgrel = 2 + pkgrel = 3 url = https://github.com/wpilibsuite/allwpilib arch = x86_64 license = BSD @@ -2,7 +2,7 @@ pkgname=wpimath pkgver=2023.1.1a -pkgrel=2 +pkgrel=3 pkgdesc="WPILib's mathematics and controls library" arch=('x86_64') url='https://github.com/wpilibsuite/allwpilib' @@ -53,23 +53,14 @@ check() { package() { DESTDIR="$pkgdir" cmake --install build - # Move includes to /usr/include - mv "$pkgdir"/usr/wpilib/include "$pkgdir"/usr/include - - # Fix wpiutil includes - mv "$pkgdir"/usr/include/wpiutil/* "$pkgdir"/usr/include - rmdir "$pkgdir"/usr/include/wpiutil - - # Fix wpimath includes - mv "$pkgdir"/usr/include/wpimath/frc "$pkgdir"/usr/include - mv "$pkgdir"/usr/include/wpimath/drake "$pkgdir"/usr/include - mv "$pkgdir"/usr/include/wpimath/units "$pkgdir"/usr/include - mv "$pkgdir"/usr/include/wpimath/wpimath/MathShared.h "$pkgdir"/usr/include/wpimath - rmdir "$pkgdir"/usr/include/wpimath/wpimath + # Fix includes install + mkdir -p "$pkgdir"/usr/include + mv "$pkgdir"/usr/wpilib/include/wpiutil/* "$pkgdir"/usr/include + mv "$pkgdir"/usr/wpilib/include/wpimath/* "$pkgdir"/usr/include # Fix libs install mv "$pkgdir"/usr/wpilib/lib "$pkgdir"/usr/lib # Delete empty folder - rmdir "$pkgdir"/usr/wpilib + rm -r "$pkgdir"/usr/wpilib } |