summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d60eaa0d21e04c2bfc84bd13dbb5433ace0fc41b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer:

## links
# https://docs.xfce.org/apps/gigolo/start
# https://gitlab.xfce.org/apps/gigolo

_pkgname=gigolo
pkgname="$_pkgname-git"
pkgver=0.5.3.r127.g6869f25
pkgrel=1
pkgdesc="Frontend to manage connections to remote filesystems using GIO/GVFS"
url="https://gitlab.xfce.org/apps/gigolo"
license=('GPL-2.0-or-later')
arch=('x86_64')

depends=(
  'gtk3'
  'gvfs'
)
makedepends=(
  'git'
  'xfce4-dev-tools'
)

provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --long --tags --abbrev=7 --match='gigolo-*' \
    | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgsrc"
  ./autogen.sh
  ./configure --prefix=/usr --enable-maintainer-mode
  make
}

package() {
  cd "$_pkgsrc"
  make DESTDIR="$pkgdir" install
}