73 lines
1.7 KiB
Bash
73 lines
1.7 KiB
Bash
# Template file for 'CopyAgent'
|
|
pkgname=CopyAgent
|
|
version=1.48.0451
|
|
revision=1
|
|
short_desc="Copy.com sync agent"
|
|
maintainer="ShadowKyogre <shadowkyogre.public@gmail.com>"
|
|
homepage="https://www.copy.com"
|
|
license="CopyAgent"
|
|
distfiles="https://copy.com/install/linux/Copy.tgz"
|
|
checksum=f474099d86baadd05758fa33164dae44b0127933f73c6a6a6e2f243bbf62bc42
|
|
only_for_archs="i686 x86_64"
|
|
repository="nonfree"
|
|
nostrip="yes"
|
|
wrksrc="copy"
|
|
depends="qt>=4.8.4_4 fuse desktop-file-utils"
|
|
|
|
do_install() {
|
|
if [ "$XBPS_TARGET_MACHINE" == "x86_64" ]; then
|
|
cd x86_64
|
|
elif [ "$XBPS_TARGET_MACHINE" == "i686" ]; then
|
|
cd x86
|
|
else
|
|
cd armv6h
|
|
fi
|
|
|
|
#vmkdir usr/bin
|
|
vmkdir opt/copy
|
|
|
|
# Libraries for executable
|
|
for i in ca-bundle.crt lib{AgentSync,Brt,CloudSync,Gui}.so; do
|
|
vinstall "$i" 755 "opt/copy/" "$i"
|
|
done
|
|
|
|
# Executable
|
|
for i in Copy{Agent,Cmd,Console}; do
|
|
vbin "${FILESDIR}/launch.sh" "$i"
|
|
vinstall "$i" 755 "opt/copy/" "$i"
|
|
done
|
|
|
|
# Icon
|
|
vinstall "${FILESDIR}/copy-agent.png" 644 usr/share/pixmaps copy-agent.png
|
|
|
|
# Desktop file
|
|
vinstall "${FILESDIR}/copy-agent.desktop" 644 usr/share/applications
|
|
|
|
# License
|
|
vlicense "${FILESDIR}/TERMS"
|
|
|
|
# nautilus and caja extensions
|
|
vinstall libnautilus-copy.so 755 "usr/lib/nautilus/extensions-3.0" libnautilus-copy.so
|
|
vinstall libcaja-copy.so 755 "usr/lib/caja/extensions-2.0" libcaja-copy.so
|
|
}
|
|
|
|
nautilus-CopyAgent_package() {
|
|
short_desc+=" - Nautilus extension"
|
|
nostrip="yes"
|
|
depends="${sourcepkg}"
|
|
allow_unknown_shlibs=yes
|
|
pkg_install() {
|
|
vmove "usr/lib/nautilus/extensions-3.0"
|
|
}
|
|
}
|
|
|
|
caja-CopyAgent_package() {
|
|
short_desc+=" - Caja extension"
|
|
nostrip="yes"
|
|
depends="${sourcepkg}"
|
|
allow_unknown_shlibs=yes
|
|
pkg_install() {
|
|
vmove "usr/lib/caja/extensions-2.0"
|
|
}
|
|
}
|