2014-11-05 23:35:20 +00:00
|
|
|
# Template file for 'CopyAgent'
|
|
|
|
pkgname=CopyAgent
|
2014-12-02 04:16:37 +00:00
|
|
|
version=1.47.0439
|
2014-11-05 23:35:20 +00:00
|
|
|
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"
|
2014-12-02 04:16:37 +00:00
|
|
|
checksum=8eb635b5c23e55bd95194e192251094aac3fd473df0254e764dd57a1614129d5
|
2014-11-08 16:17:19 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-11-05 23:35:20 +00:00
|
|
|
repository="nonfree"
|
|
|
|
nostrip="yes"
|
|
|
|
wrksrc="copy"
|
2014-11-08 16:17:19 +00:00
|
|
|
depends="qt>=4.8.4_4 fuse desktop-file-utils"
|
2014-11-05 23:35:20 +00:00
|
|
|
|
|
|
|
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
|
2014-11-09 06:39:58 +00:00
|
|
|
vbin "${FILESDIR}/launch.sh" "$i"
|
2014-11-05 23:35:20 +00:00
|
|
|
vinstall "$i" 755 "opt/copy/" "$i"
|
|
|
|
done
|
2014-11-09 06:39:58 +00:00
|
|
|
|
2014-11-05 23:35:20 +00:00
|
|
|
# Icon
|
|
|
|
vinstall "${FILESDIR}/copy-agent.png" 644 usr/share/pixmaps copy-agent.png
|
2014-11-09 06:44:18 +00:00
|
|
|
|
2014-11-05 23:35:20 +00:00
|
|
|
# Desktop file
|
|
|
|
vinstall "${FILESDIR}/copy-agent.desktop" 644 usr/share/applications
|
2014-11-09 06:39:58 +00:00
|
|
|
|
2014-11-05 23:35:20 +00:00
|
|
|
# License
|
2014-11-09 06:39:58 +00:00
|
|
|
vlicense "${FILESDIR}/TERMS"
|
2014-11-05 23:35:20 +00:00
|
|
|
|
|
|
|
# nautilus and caja extensions
|
|
|
|
vinstall libnautilus-copy.so 755 "usr/lib/nautilus/extensions-3.0" libnautilus-copy.so
|
2014-11-09 06:39:58 +00:00
|
|
|
vinstall libcaja-copy.so 755 "usr/lib/caja/extensions-2.0" libcaja-copy.so
|
2014-11-05 23:35:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|