diff options
author | edwardwawrzynek | 2020-02-02 00:30:30 -0700 |
---|---|---|
committer | edwardwawrzynek | 2020-02-02 00:30:30 -0700 |
commit | e565fd5ebd2c7a779e85458ac1ae0bb1d95b2b54 (patch) | |
tree | ff1a17a66412cfd77e9f3f3f90b59bf85e8dd514 /PKGBUILD | |
parent | f76157d84c80a38d415be9e29c4c4ca8fd2a02a3 (diff) | |
download | aur-e565fd5ebd2c7a779e85458ac1ae0bb1d95b2b54.tar.gz |
add desktop entry and icons
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 32 insertions, 4 deletions
@@ -2,7 +2,7 @@ pkgname=ftcfrcsimulator pkgver=4.2 -pkgrel=1 +pkgrel=2 pkgdesc="FIRST Tech Challenge and FIRST Robotics Competition Simulator" arch=('x86_64') url="http://ftcsimulator.org" @@ -10,20 +10,48 @@ license=('unknown') depends=('gtk2') optdepends=('openvr: For VR support') -source=("${pkgname}-${pkgver}.zip::http://ftcsimulator.org/?smd_process_download=1&download_id=794") -sha1sums=("f6b3ccfe3d958ebc4033eb68c3571e24bab36037") +source=( + "${pkgname}-${pkgver}.zip::http://ftcsimulator.org/?smd_process_download=1&download_id=794" + "ftcfrcsimulator.desktop" + "16x16.png" + "24x24.png" + "32x32.png" + "48x48.png" + "64x64.png" + "128x128.png" + "256x256.png" +) +sha1sums=( + "f6b3ccfe3d958ebc4033eb68c3571e24bab36037" + "53940cf0b7bf2acb748949b8c572a89b5711ba4e" + "5b3f36d076bd653468b14f1f2afd8dd74e84ca27" + "385243f17f54ebd8dae00292fa228c8e3cf980d8" + "583c25b180d5f186fc797fb6ff5975483e79496b" + "ca5d0e8da475c3755eb4ecd8f48b455cec3a482c" + "16c8e3fa3ab27d148f2c86a3cd18fad73b5e7016" + "3fe9749c44c1e7d7060ec5c1ff8903ff37f1c488" + "0906ac5d429d0370779e77f3fd194848e9c8b70c" +) package() { cd "${srcdir}" mkdir -p "${pkgdir}/usr/share/ftcfrcsimulator" "${pkgdir}/usr/bin" + # Copy data to /usr/share, set directory permissions to 755, file permissions to 644 cp -r "FTC Simulator v${pkgver} Linux x64_Data" "${pkgdir}/usr/share/ftcfrcsimulator/" chmod -R 0755 "${pkgdir}/usr/share/ftcfrcsimulator" find "${pkgdir}/usr/share/ftcfrcsimulator/" -type f -exec chmod 644 {} \; + # Copy binary over install -Dm755 "FTC Simulator v${pkgver} Linux x64.x86_64" "${pkgdir}/usr/share/ftcfrcsimulator/FTC Simulator v${pkgver} Linux x64.x86_64" - #ln -s "/usr/share/ftcfrcsimulator/FTC Simulator v${pkgver} Linux x64.x86_64" "${pkgdir}/usr/bin/ftcfrcsimulator" + # Put a script in /usr/bin to run app cat <<EOF > "${pkgdir}"/usr/bin/ftcfrcsimulator #!/bin/bash "/usr/share/ftcfrcsimulator/FTC Simulator v${pkgver} Linux x64.x86_64" EOF chmod 0755 "${pkgdir}"/usr/bin/ftcfrcsimulator + # Desktop Entry + install -Dm644 ftcfrcsimulator.desktop "${pkgdir}/usr/share/applications/frcfrcsimulator.desktop" + # Logos + for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do + install -Dm644 "${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}/apps/ftcfrcsimulator.png" + done } |