Last active
July 6, 2016 11:55
-
-
Save Gabrielgtx/f41db465314691f248540e827eb5bc86 to your computer and use it in GitHub Desktop.
Sync your files to your Mega account. Official app. / http://mega.nz / https://github.com/meganz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# megasync.install | |
post_install() { | |
update-desktop-database -q | |
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | |
} | |
post_upgrade() { | |
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | |
} | |
post_remove() { | |
update-desktop-database -q | |
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=megasync | |
pkgver=2.9.5 | |
pkgrel=1 | |
pkgdesc="Sync your files to your Mega account. Official app." | |
url='http://mega.nz' | |
arch=('x86_64') | |
license=('custom:MEGA') | |
depends=('qt5-base' 'c-ares' 'curl' 'crypto++' 'hicolor-icon-theme' 'libuv') | |
makedepends=('git' 'qt5-tools') | |
source=("${pkgname}-${pkgver}::git+https://github.com/meganz/MEGAsync.git#tag=v${pkgver//./_}_0_Linux") | |
md5sums=('SKIP') | |
prepare() { | |
mv ${pkgname}-${pkgver} MEGAsync | |
cd MEGAsync | |
sed 's|git@github.com:meganz/sdk.git|https://github.com/meganz/sdk.git|g' -i .gitmodules | |
git submodule update --init --recursive | |
cd src/MEGASync/mega | |
./autogen.sh | |
./configure --disable-examples \ | |
--disable-posix-threads \ | |
--without-freeimage \ | |
--without-sodium | |
} | |
build() { | |
cd MEGAsync/src | |
/usr/lib/qt5/bin/qmake CONFIG+=release MEGA.pro | |
/usr/lib/qt5/bin/lrelease MEGASync/MEGASync.pro | |
make | |
} | |
package() { | |
cd MEGAsync | |
install -Dm644 LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
cd src/MEGASync | |
install -Dm755 megasync "${pkgdir}/usr/bin/megasync" | |
cd platform/linux/data | |
install -Dm644 megasync.desktop "${pkgdir}/usr/share/applications/megasync.desktop" | |
cp -r icons "${pkgdir}/usr/share" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=megasync | |
pkgver=2.9.5 | |
pkgrel=1 | |
pkgdesc="Sync your files to your Mega account. Official app" | |
arch=('x86_64') | |
url="http://mega.nz" | |
license=('custom:The Clarified Artistic License') | |
options=(!strip) | |
depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++' 'qt' 'libpng' 'sqlite') | |
install="${pkgname}.install" | |
source=("https://mega.nz/linux/MEGAsync/Arch_Extra/x86_64/${pkgname}_${pkgver}-1_${arch}.pkg.tar.xz") | |
md5sums=('392deb8bf0d0c1d163cc762fb7a206e3') | |
PKGEXT=".pkg.tar" | |
package() { | |
cd "${srcdir}" | |
pwd | |
tar -xJf data.tar.xz -C ${pkgdir} | |
rm -r ${pkgdir}/usr/share/doc | |
mkdir -p ${pkgdir}/usr/lib | |
ln -s /usr/lib/libcryptopp.so ${pkgdir}/usr/lib/libcrypto++.so.9 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment