summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a892c67eb5b9e04594bd9095287e47806bc89f3 (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
49
50
51
52
53
54
55
# Maintainer:
# Contributor: jfperini <@jfperini>

_pkgname="gnome-encfs-manager"
pkgname="$_pkgname-bzr"
pkgver=1.9.r562.c1721
pkgrel=2
pkgdesc="An easy to use manager and mounter for Encfs stashes"
url="https://launchpad.net/gencfsm"
license=('GPL-2.0-or-later')
arch=('x86_64')

depends=(
  'encfs'
  'gtk3'
  'libgee'
  'libice'
  'libsecret'
  'libsm'
)
makedepends=(
  'breezy'
  'intltool'
  'vala'
)

provides=("$_pkgname")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::'bzr+https://code.launchpad.net/~gencfsm/gencfsm/trunk')
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  local _ver=$(bzr tags | sort -V | tail -1 | sed -E 's@ .*$@@')
  local _tag=$(bzr tags | sort -V | tail -1 | sed -E 's@^.* @@')
  local _cnt=$(bzr revno)
  local _rev=$((_cnt - _tag))
  printf '%s.r%s.c%s' "$_ver" "$_rev" "$_cnt"
}

build() {
  CFLAGS+=" -Wno-error=implicit-function-declaration"

  cd "$_pkgsrc"
  ./autogen.sh
  ./configure --prefix=/usr --disable-appindicator
  make
}

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