yandex-disk: update to 0.1.6.1080

don't manually extract deb
This commit is contained in:
classabbyamp 2022-11-11 03:01:14 -05:00 committed by classabbyamp
parent ee5da427e0
commit 6e3344e4bb
1 changed files with 9 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'yandex-disk' # Template file for 'yandex-disk'
pkgname=yandex-disk pkgname=yandex-disk
version=0.1.6.1074 version=0.1.6.1080
revision=1 revision=1
archs="i686 x86_64" archs="i686 x86_64"
short_desc="Console client for Yandex.Disk" short_desc="Console client for Yandex.Disk"
@ -12,27 +12,21 @@ restricted=yes
nostrip_files=yandex-disk nostrip_files=yandex-disk
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
debpkgid="${pkgname}_${version}_amd64.deb" distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/yandex-disk_${version}_amd64.deb"
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}" checksum=47ba503b4dfccecc824386d67d686abe4b5356b8b546e48fce8811b5fa88a718
checksum=dddc57d2dbb1a68d8aef67450d138a9b7c7975438c10b6bbf5a0214e7fd47ecd
else else
debpkgid="${pkgname}_${version}_i386.deb" distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/yandex-disk_${version}_i386.deb"
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}" checksum=9d94d0036e22509950b2acceaa9520f36d1370256d2f9b56d7696f9ff09e249b
checksum=b0b0d25a966c1c48aef87bb5bceeb41d2150859cb64896fe07c765ad73bdf242
fi fi
do_extract() { post_patch() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${debpkgid} vsed -e "s/^\(have.*\)/\#\1/" -i etc/bash_completion.d/yandex-disk-completion.bash
bsdtar xzpvf data.tar.gz
gunzip usr/share/man/man1/yandex-disk.1.gz
} }
do_install() { do_install() {
vbin usr/bin/yandex-disk vbin usr/bin/yandex-disk
vlicense usr/share/doc/yandex-disk/copyright vlicense usr/share/doc/yandex-disk/copyright
vman usr/share/man/man1/yandex-disk.1 vcopy usr/share/man usr/share
vcopy usr/share/locale usr/share vcopy usr/share/locale usr/share
install -m644 -D etc/bash_completion.d/yandex-disk-completion.bash \ vcompletion etc/bash_completion.d/yandex-disk-completion.bash bash
${DESTDIR}/usr/share/bash-completion/completions/yandex-disk
vsed -e "s/^\(have.*\)/\#\1/" -i ${DESTDIR}/usr/share/bash-completion/completions/yandex-disk
} }