yochananmarqos

watchit-bin

Mar 1st, 2021
760
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=watchit-bin
  2. _pkgver=0.1.0-beta.2
  3. pkgver=${_pkgver//-/.}
  4. pkgrel=1
  5. pkgdesc="Watch movies everywhere"
  6. arch=('x86_64')
  7. url="http://watchitapp.site"
  8. license=('LGPL3')
  9. depends=('libxss' 'nss' 'gtk3')
  10. provides=("${pkgname%-bin}")
  11. conflicts=("${pkgname%-bin}")
  12. source=("https://github.com/ZorrillosDev/watchit-desktop/releases/download/v$_pkgver/${pkgname%-bin}_${_pkgver}_amd64.deb")
  13. sha256sums=('8a5558f87c941bb28244b5b9a3444364e4b0797bae463b61f4cfd96afa2427ac')
  14.  
  15. package() {
  16.     bsdtar xvf data.tar.xz -C "$pkgdir"
  17.  
  18.     install -d "$pkgdir/usr/bin"
  19.     ln -sf "/opt/watchit/${pkgname%-bin}" "$pkgdir/usr/bin/${pkgname%-bin}"
  20.  
  21.     install -d "$pkgdir/usr/share/pixmaps"
  22.     mv "$pkgdir/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png" \
  23.         "$pkgdir/usr/share/pixmaps"
  24.     rm -rf "$pkgdir/usr/share/icons"
  25.     rm -rf "$pkgdir/usr/share/doc"
  26. }
RAW Paste Data