summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChih-Hsuan Yen2018-08-30 19:02:38 +0800
committerChih-Hsuan Yen2018-08-30 19:02:38 +0800
commitdbd7b71d644de720392c8af7ff1599164284bf5e (patch)
tree585d6e075d11750c3854acb2e725e804c31be51c /PKGBUILD
parentb8438287b8337be53bf83e447297b7bae23bbe1e (diff)
downloadaur-libfm-qt-git.tar.gz
misc changes/improvements
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 22 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8a6e891ba05..5fe9d11ae78 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
-# Maintainer: Peter Mattern <pmattern at arcor dot de>
+# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
+# Contributor: Peter Mattern <pmattern at arcor dot de>
_pkgname=libfm-qt
pkgname=$_pkgname-git
-pkgver=0.13.1.144.g62b5fbd
+pkgver=0.13.1.225.gd37f4ad
pkgrel=1
pkgdesc='Qt port of libfm, a library providing components to build desktop file managers'
arch=('i686' 'x86_64')
@@ -11,9 +12,9 @@ license=('LGPL')
depends=('qt5-x11extras' 'menu-cache' 'libexif')
makedepends=('git' 'cmake' 'qt5-tools' 'lxqt-build-tools-git')
optdepends=(
- 'gvfs: support for the trash bin and network devices'
+ 'gvfs: support for the trash bin and network devices'
)
-provides=("$_pkgname")
+provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname" 'pcmanfm-qt<=0.10.0')
source=('git+https://github.com/lxqt/libfm-qt.git')
sha256sums=('SKIP')
@@ -23,13 +24,27 @@ pkgver() {
git describe --always | sed 's:-:.:g'
}
+prepare() {
+ mkdir -p build
+}
+
build() {
- mkdir -p build ; cd build
- cmake $srcdir/$_pkgname -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
+ cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ ../$_pkgname
+
make
}
package() {
cd build
- make DESTDIR=$pkgdir install
+
+ make DESTDIR="$pkgdir" install
+
+ # CMake installs empty folders unexpectedly
+ # https://gitlab.kitware.com/cmake/cmake/issues/17122
+ rmdir "$pkgdir"/usr/include/libfm-qt/{tests,translations}
}