Last active
March 6, 2016 20:57
-
-
Save bvaudour/00c01948665b9d0a416a to your computer and use it in GitHub Desktop.
Megasync
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.7.1 | |
pkgrel=1 | |
pkgdesc="Sync your files to your Mega account. Official app" | |
arch=('x86_64') | |
url="http://mega.nz" | |
license=('custom:Mega License') | |
depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++' 'qt' 'libpng' 'sqlite' 'ca-certificates') | |
makedepends=('git' 'qt') | |
source=("git://github.com/meganz/MEGAsync.git") | |
md5sums=('SKIP') | |
options=(!strip) | |
install="${pkgname}.install" | |
prepare() { | |
cd "${srcdir}/MEGAsync" | |
git submodule update --init --recursive | |
} | |
build() { | |
cd "${srcdir}/MEGAsync/src" | |
./configure | |
qmake MEGA.pro DESTDIR="${pkgdir}" | |
lrelease MEGASync/MEGASync.pro | |
make | |
} | |
package() { | |
cd "${srcdir}/MEGAsync/src" | |
make DESTDIR="${pkgdir}" install | |
desktop-file-install --add-category="Network" \ | |
--dir "${pkgdir}/usr/share/applications" \ | |
"${pkgdir}/applications/${pkgname}.desktop" | |
#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