Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nueva version de 4K Video Downloader para Archlinux
pkgname=4kvideodownloader
pkgver=4.8.0.2852
pkgrel=1
pkgdesc="Quickly download videos from YouTube in high-quality."
arch=('x86_64')
url="http://www.4kdownload.com/products/product-videodownloader"
license=('custom:eula')
depends=('qt5-script' 'qt5-declarative' 'portaudio' 'ffmpeg2.8')
makedepends=('chrpath')
source=("${pkgname}_${pkgver}_amd64.tar.bz2"::"https://dl.4kdownload.com/app/${pkgname}_${pkgver%.*}_amd64.tar.bz2"
"${pkgname}.desktop"
"${pkgname}.png")
sha256sums=('e9ac1a0c95a135b6e406ef063e2cf430f52f3383eab4eaf00e73f181a701dd50'
'6ab39088bde330267b43f87878f6bd47a215c732e17d417a99fc23ac4c568952'
'56b851ef96aade0612f236b8763ccaf2def8acdd49f37bbefdd79e1d5f6e68be')
prepare() {
cd "${pkgname}"
# Remove insecure RPATH
chrpath --delete "${pkgname}-bin"
}
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
You can’t perform that action at this time.