diff options
author | XavierCLL | 2017-04-25 15:01:40 -0500 |
---|---|---|
committer | XavierCLL | 2017-04-25 15:01:40 -0500 |
commit | bb89f9148465eec5c5d8efe7aae5dd5ab4788de8 (patch) | |
tree | ab0935f82bbae5b5cb1e0218c59ef1087bba6c5b /PKGBUILD | |
download | aur-bb89f9148465eec5c5d8efe7aae5dd5ab4788de8.tar.gz |
Init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..399fed2988c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: XavierCLL <xavier.corredor.llano (a) gmail.com> + +pkgname="dolphin-megasync" +pkgver=3.0.1 +pkgrel=1 +pkgdesc="Upload your files to your Mega account from Dolphin file manager." +arch=('i686' 'x86_64') +url="https://mega.co.nz/#sync" +license=('custom:The Clarified Artistic License') +depends=('megasync' 'dolphin') +source=("https://mega.nz/linux/MEGAsync/xUbuntu_17.04/${pkgname}_${pkgver}.orig.tar.gz") +sha256sums=('050f33301972083f9d622d127ad566bc95ea33a33027b296b7668dbb9802c5ed') +install="${pkgname}.install" + +build() { + cd "${pkgname}-${pkgver}" + rm CMakeLists.txt + mv CMakeLists_kde5.txt CMakeLists.txt + + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm 644 megasync-plugin.desktop $pkgdir/usr/share/kservices5/ServiceMenus/megasync-plugin.desktop + install -Dm 644 megasyncplugin.so $pkgdir/usr/lib/qt/plugins/megasyncplugin.so + install -Dm 644 megasyncdolphinoverlayplugin.so $pkgdir/usr/lib/qt/plugins/kf5/overlayicon/megasyncdolphinoverlayplugin.so + + cd "data/emblems" + for size in 32x32 64x64 + do + install -dm 755 ${pkgdir}/usr/share/icons/hicolor/${size}/emblems + install -m 644 -p ${size}/mega-dolphin-{pending,synced,syncing}.png ${pkgdir}/usr/share/icons/hicolor/${size}/emblems/ + done +} + +# vim:set ts=4 sw=2 ft=sh et: |