Created
June 16, 2017 01:52
-
-
Save anonymous/2ec6e24cfab58668e066d9af9289fc53 to your computer and use it in GitHub Desktop.
4kvideodownloader PKGBUILD works as of June 15, 2017
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Muflone http://www.muflone.com/contacts/english/ | |
pkgname=4kvideodownloader | |
pkgver=4.2 | |
pkgrel=2 | |
pkgdesc="Quickly download videos from YouTube in high-quality." | |
arch=('i686' 'x86_64') | |
url="http://www.4kdownload.com/products/product-videodownloader" | |
license=('custom:eula') | |
depends=('qt5-script' 'portaudio' 'ffmpeg2.8') | |
source=("${pkgname}.desktop" | |
"${pkgname}.png") | |
source_i686=("${pkgname}_${pkgver}_i386.tar.bz2"::"https://downloads2.4kdownload.com/app/${pkgname}_${pkgver}_i386.tar.bz2") | |
source_x86_64=("${pkgname}_${pkgver}_amd64.tar.bz2"::"https://downloads2.4kdownload.com/app/${pkgname}_${pkgver}_amd64.tar.bz2") | |
sha256sums=('6ab39088bde330267b43f87878f6bd47a215c732e17d417a99fc23ac4c568952' | |
'56b851ef96aade0612f236b8763ccaf2def8acdd49f37bbefdd79e1d5f6e68be') | |
sha256sums_i686=('8a9a66b23eba65ee971f45f151eb10c084e1b9ae7241d87e48c83929a2c60d65') | |
sha256sums_x86_64=('f37d5fe8d095110f4f8503ebf44687955e1726d801076cf4fb22b6da6196af62') | |
package() { | |
# Install desktop file | |
install -m 755 -d "${pkgdir}/usr/share/applications" | |
install -m 755 -t "${pkgdir}/usr/share/applications" "${pkgname}.desktop" | |
# Install icon file | |
install -m 755 -d "${pkgdir}/usr/share/pixmaps" | |
install -m 644 -t "${pkgdir}/usr/share/pixmaps" "${pkgname}.png" | |
# Install files | |
cd "${pkgname}" | |
install -m 755 -d "${pkgdir}/usr/lib/${pkgname}" | |
install -m 755 -t "${pkgdir}/usr/lib/${pkgname}" "${pkgname}-bin" | |
install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/audio" | |
install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/audio" audio/* | |
install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/translation" | |
install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/translation" translation/* | |
# Install launcher file | |
install -m 755 -d "${pkgdir}/usr/bin" | |
ln -s "/usr/lib/${pkgname}/${pkgname}-bin" "${pkgdir}/usr/bin/${pkgname}" | |
# Install license file | |
install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}" | |
install -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "doc/eula" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment