yochananmarqos

executor-data

Oct 27th, 2020
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=executor-data
  2. pkgver=1
  3. pkgrel=1
  4. pkgdesc="Data files for Executor"
  5. arch=('any')
  6. url="http://wiki.victor3d.com.br"
  7. license=('GPL')
  8. source=("$pkgname-$pkgver.tar.gz::https://github.com/victor3dptz/executor-packaging/raw/master/arch/executor.tar.gz")
  9. sha256sums=('b58fccaba0a31af2bcc8c7bb3ab7e70baf8938a742fc0db5364115977d725e2d')
  10.  
  11. package() {
  12.     install -Dm644 "${pkgname%-*}/usr/share/${pkgname%-*}/apple_icon.png" \
  13.         "$pkgdir/usr/share/pixmaps/${pkgname%-*}.png"
  14.     sed -i "s/\/usr\/share\/executor\/apple_icon.png/${pkgname%-*}/g" \
  15.         "${pkgname%-*}/usr/share/applications/${pkgname%-*}.desktop"
  16.  
  17.     rm -rf "${pkgname%-*}/usr/share/${pkgname%-*}"
  18.     cp -r "${pkgname%-*}/usr" "$pkgdir"
  19.  
  20.     install -Dm644 "$pkgdir/usr/share/applications/${pkgname%-*}.desktop" \
  21.         "$pkgdir/usr/share/applications/${pkgname%-*}-sdl.desktop"
  22.     sed -i 's/Name=Executor/Name=Executor SDL/g' \
  23.         "$pkgdir/usr/share/applications/${pkgname%-*}-sdl.desktop"
  24.     sed -i "s/bin\/${pkgname%-*}/bin\/${pkgname%-*}-sdl/g" \
  25.         "$pkgdir/usr/share/applications/${pkgname%-*}-sdl.desktop"
  26.  
  27.     install -Dm644 "$pkgdir/usr/share/applications/${pkgname%-*}.desktop" \
  28.         "$pkgdir/usr/share/applications/${pkgname%-*}-sdl2.desktop"
  29.     sed -i 's/Name=Executor/Name=Executor SDL2/g' \
  30.         "$pkgdir/usr/share/applications/${pkgname%-*}-sdl2.desktop"
  31.     sed -i "s/bin\/${pkgname%-*}/bin\/${pkgname%-*}-sdl2/g" \
  32.         "$pkgdir/usr/share/applications/${pkgname%-*}-sdl2.desktop"
  33.  
  34.     install -Dm644 "$pkgdir/usr/share/applications/${pkgname%-*}.desktop" \
  35.         "$pkgdir/usr/share/applications/${pkgname%-*}-wayland.desktop"
  36.     sed -i 's/Name=Executor/Name=Executor Wayland/g' \
  37.         "$pkgdir/usr/share/applications/${pkgname%-*}-wayland.desktop"
  38.     sed -i "s/bin\/${pkgname%-*}/bin\/${pkgname%-*}-wayland/g" \
  39.         "$pkgdir/usr/share/applications/${pkgname%-*}-wayland.desktop"
  40.  
  41.     install -Dm644 "$pkgdir/usr/share/applications/${pkgname%-*}.desktop" \
  42.         "$pkgdir/usr/share/applications/${pkgname%-*}-x.desktop"
  43.     sed -i 's/Name=Executor/Name=Executor X/g' \
  44.         "$pkgdir/usr/share/applications/${pkgname%-*}-x.desktop"
  45.     sed -i "s/bin\/${pkgname%-*}/bin\/${pkgname%-*}-x/g" \
  46.         "$pkgdir/usr/share/applications/${pkgname%-*}-x.desktop"
  47. }
RAW Paste Data