summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5e783cc1abea35a6193e240f71424112040c9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Lerentis <lerentis@burntbunch.org>
pkgname=index-fm-git
pkgver=v2.0.0.r5.g818bd9f
pkgrel=1
pkgdesc="Index is a file manager that works on desktops, Android and Plasma Mobile"
arch=('any')
url="https://invent.kde.org/maui/index-fm"
license=('GPL3')
depends=('mauikit' 'mauikit-filebrowsing' 'qmltermwidget')
makedepends=('git' 'cmake' 'extra-cmake-modules')
source=("git+https://invent.kde.org/maui/index-fm.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
    cd "${pkgname%-git}"
    cmake . \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
        -DCMAKE_INSTALL_LIBDIR=/usr/lib
    make
}

package() {
    cd "${pkgname%-git}"
    install -d $pkgdir/usr/bin
    make prefix=$pkgdir/usr install
}