Guest User

PKGBUILD

a guest
Feb 10th, 2016
198
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=4kvideodownloader
  2. pkgver=3.8
  3. pkgrel=1
  4. pkgdesc="4K Video Downloader allows to download video and audio content from YouTube for PC, Mac and Linux."
  5. arch=('x86_64')
  6. url="http://www.4kdownload.com"
  7. screenshot="https://static.4kdownload.com/main/img/screenshots/videodownloader/3-windows.d8c1e3d19ee4.png"
  8. license=('LGPL2.1-EULA')
  9. depends=('qt5-base' 'qt5-script')
  10. source=("http://downloads.4kdownload.com/app/4kvideodownloader_${pkgver}-1_amd64.deb")
  11. sha256sums=('7585941877f14e770a03cce6e9adb97d03bc5e117669ad2a5919056e590562e8')
  12.  
  13. build() {
  14.     cd ${srcdir}
  15.     tar --xz -xvf ${srcdir}/data.tar.xz
  16. }
  17.  
  18. package() {
  19.   cd ${srcdir}
  20.   install -D $srcdir/usr/share/applications/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  21.   install -d $pkgdir/usr/share/doc/$pkgname
  22.   cp -R $srcdir/usr/share/doc/$pkgname/* $pkgdir/usr/share/doc/$pkgname/
  23.   install -D $srcdir/usr/share/pixmaps/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
  24.   install -D -m755 "${srcdir}/usr/lib/$pkgname/$pkgname.sh" "${pkgdir}/usr/bin/$pkgname"
  25.   install -d $pkgdir/usr/lib/$pkgname
  26.   cp -R $srcdir/usr/lib/$pkgname/* $pkgdir/usr/lib/$pkgname
  27.  
  28.   #libraries
  29.     ln -sf ${srcdir}/usr/lib/libicudata.so ${pkgdir}/usr/lib/$pkgname/libicudata.so.49
  30.     ln -sf ${srcdir}/usr/lib/libicuuc.so ${pkgdir}/usr/lib/$pkgname/libicuuc.so.49
  31.     ln -sf /opt/downverter/ffbin/libvo-aacenc.so.0 ${pkgdir}/usr/lib/$pkgname/libvo-aacenc.so.0
  32.     ln -sf /usr/lib/libx264.so.129 ${pkgdir}/usr/lib/$pkgname/libx264.so.128
  33. }
RAW Paste Data