From 10bccc373f220ade191ba88676605a1d08c56850 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Mon, 22 Jan 2018 09:40:23 +0100 Subject: pcr/nitroshare: updated to 0.3.4 --- pcr/nitroshare/PKGBUILD | 64 +++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/pcr/nitroshare/PKGBUILD b/pcr/nitroshare/PKGBUILD index 19fca2a6c..f0dc552a4 100644 --- a/pcr/nitroshare/PKGBUILD +++ b/pcr/nitroshare/PKGBUILD @@ -1,33 +1,41 @@ -# Maintainer (Arch): Sid Karunaratne -# Contributor (Arch): Nathan Osman +# Maintainer (AUR): Sid Karunaratne +# Contributor (AUR): Nathan Osman +# Contributor (AUR): BlackEagle -pkgname=nitroshare -pkgver=0.2 -pkgrel=2 -pkgdesc="Makes sending a file to another machine on the local network as easy as dragging-and-dropping" -arch=('i686' 'x86_64') -url="https://launchpad.net/nitroshare" -license=('GPL3') -depends=('qt' 'qjson' 'qxmlrpc') -makedepends=() -options=() -source=(https://launchpad.net/${pkgname}/${pkgver}/${pkgver}/+download/${pkgname}_${pkgver}.tar.gz nitroshare.install) -md5sums=('00f670fadf385ee2a920b67a4120295d' - '0e8cd7761d04a45d22d28ac7b98fa234') +# parabola changes and rationale: +# no changes. -build () { - cd "${srcdir}/${pkgname}" - sed -i "s_target.path = /opt/extras.ubuntu.com/nitroshare_target.path = ${pkgdir}/usr/bin_g" nitroshare.pro - sed -i "s_Exec=/opt/extras.ubuntu.com/nitroshare/nitroshare_Exec=/usr/bin/${pkgname}_g" resource/other/extras-${pkgname}.desktop - qmake - make +pkgname='nitroshare' +pkgver='0.3.4' +pkgrel=1 +pkgdesc='Network File Transfer Application' +url='https://nitroshare.net' +arch=('i686' 'x86_64' 'armv7h') +license=('MIT') +makedepends=('cmake') +depends=('qt5-base' 'qt5-tools' 'qt5-svg') +optdepends=( + 'libappindicator-gtk2: export a menu into the Unity Menu bar' + 'qhttpengine: allow local applications access' + 'qmdnsengine: enable mDNS discovery' +) +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/nitroshare/nitroshare-desktop/archive/$pkgver.tar.gz" +) +sha256sums=('29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec') + +build() { + cd "$pkgname-desktop-$pkgver" + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . + make } -package (){ - cd "${srcdir}/${pkgname}" - make install - mkdir -p ${pkgdir}/usr/share/applications - install -Dm644 resource/other/extras-${pkgname}.desktop ${pkgdir}/usr/share/applications/ - install -Dm644 resource/images/logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +package() { + cd "$pkgname-desktop-$pkgver" + make DESTDIR="$pkgdir" install + + # license + install -Dm644 \ + "LICENSE.txt" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" } -- cgit v1.2.3