diff options
author | Chih-Hsuan Yen | 2018-08-30 19:02:38 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2018-08-30 19:02:38 +0800 |
commit | dbd7b71d644de720392c8af7ff1599164284bf5e (patch) | |
tree | 585d6e075d11750c3854acb2e725e804c31be51c | |
parent | b8438287b8337be53bf83e447297b7bae23bbe1e (diff) | |
download | aur-dbd7b71d644de720392c8af7ff1599164284bf5e.tar.gz |
misc changes/improvements
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 24 insertions, 9 deletions
@@ -1,6 +1,6 @@ pkgbase = libfm-qt-git pkgdesc = Qt port of libfm, a library providing components to build desktop file managers - pkgver = 0.13.1.144.g62b5fbd + pkgver = 0.13.1.225.gd37f4ad pkgrel = 1 url = https://github.com/lxqt/libfm-qt arch = i686 @@ -14,7 +14,7 @@ pkgbase = libfm-qt-git depends = menu-cache depends = libexif optdepends = gvfs: support for the trash bin and network devices - provides = libfm-qt + provides = libfm-qt=0.13.1.225.gd37f4ad conflicts = libfm-qt conflicts = pcmanfm-qt<=0.10.0 source = git+https://github.com/lxqt/libfm-qt.git @@ -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} } |