summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkycoder422017-07-16 13:32:11 +0200
committerSkycoder422017-07-16 13:32:11 +0200
commitb7bbcbeea3ca536f0dbdb47bbe544a04ec4c69fb (patch)
treea1c004fcd66da475b69771b7ac448576a63967a6
parent51671e1037cf56aa50e879e9e7d8f8decb648872 (diff)
downloadaur-qsshfs.tar.gz
improved build
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD26
2 files changed, 17 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cfce9d5b975..8816f771db8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = qsshfs
pkgdesc = A gui wrapper around sshfs, written in Qt
pkgver = 1.1.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/Skycoder42/qsshfs
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 7dc1365d342..5adf54f910e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Felix Barz <skycoder42.de@gmx.de>
pkgname=qsshfs
pkgver=1.1.0
-pkgrel=2
+pkgrel=3
pkgdesc="A gui wrapper around sshfs, written in Qt"
arch=('i686' 'x86_64')
url="https://github.com/Skycoder42/qsshfs"
@@ -9,23 +9,29 @@ license=('BSD')
depends=('qt5-base' 'qt5-tools' 'sshfs')
makedepends=('git' 'qpm')
optdepends=("x11-ssh-askpass: SSH_ASKPASS is required. This is one possible implementation for it.")
-source=("$pkgname-$pkgver::git+https://github.com/Skycoder42/qsshfs.git#tag=$pkgver")
+_pkgfqn=$pkgname-$pkgver
+source=("$_pkgfqn::git+https://github.com/Skycoder42/qsshfs.git#tag=$pkgver")
md5sums=('SKIP')
-build() {
- cd "$pkgname-$pkgver"
+prepare() {
+ mkdir -p build
+
+ cd "$_pkgfqn"
qpm install
+}
- qmake
- make qmake_all
+build() {
+ cd build
+
+ qmake -r "../$_pkgfqn/"
make
}
package() {
- cd "$pkgname-$pkgver"
-
- make INSTALL_ROOT="$pkgdir" install
-
+ cd build
+ make INSTALL_ROOT="$pkgdir" install
+
+ cd "../$_pkgfqn"
install -D -m644 de.skycoder42.${pkgname}.desktop "$pkgdir/usr/share/applications/de.skycoder42.${pkgname}.desktop"
install -D -m644 ${pkgname}_32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png"
install -D -m644 ${pkgname}_16.png "$pkgdir/usr/share/icons/hicolor/16x16/apps/$pkgname.png"