This commit is contained in:
parent
3942b90e8b
commit
f608f70b55
1 changed files with 41 additions and 1 deletions
42
alr.sh
42
alr.sh
|
@ -1 +1,41 @@
|
||||||
# Describe your package here
|
name='yandex-disk'
|
||||||
|
version=0.1.6.1080
|
||||||
|
release=1
|
||||||
|
desc='Yandex.Disk keeps your files with you at all times.'
|
||||||
|
architectures=('amd64')
|
||||||
|
homepage='http://disk.yandex.ru/'
|
||||||
|
license=('proprietary')
|
||||||
|
maintainer="Maxim Slipenko <maks1ms@alt-gnome.ru>"
|
||||||
|
|
||||||
|
build_deps=(
|
||||||
|
bsdtar
|
||||||
|
)
|
||||||
|
|
||||||
|
auto_req=1
|
||||||
|
auto_prov=1
|
||||||
|
|
||||||
|
scripts=(
|
||||||
|
['postinstall']='postinstall.sh'
|
||||||
|
)
|
||||||
|
|
||||||
|
_deb_package="yandex-disk_${version}_amd64.deb"
|
||||||
|
|
||||||
|
sources=(
|
||||||
|
"https://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/$_deb_package?~name=$_deb_package"
|
||||||
|
)
|
||||||
|
|
||||||
|
checksums=(
|
||||||
|
'md5:19446922ba1713183476953663a2b1cb'
|
||||||
|
)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cp "${scriptdir}/yandex-disk.service" "${srcdir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir"
|
||||||
|
ar x "$_deb_package"
|
||||||
|
bsdtar xf data.tar.gz -C "$pkgdir"
|
||||||
|
install -Dm644 "$pkgdir/usr/share/doc/yandex-disk/copyright" "$pkgdir/usr/share/licenses/$name/LICENSE"
|
||||||
|
install -Dm644 "${srcdir}/yandex-disk.service" "${pkgdir}/usr/lib/systemd/user/yandex-disk.service"
|
||||||
|
}
|
Loading…
Reference in a new issue