summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 771f8a02777d0c325dde31571e0dab16cb1909bf (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
# Maintainer: Manel Castillo Giménez
pkgname="clavis-git"
pkgver="1.1.0"
pkgrel="1"
pkgdesc="An easy to use Password Manager. Development version"
arch=("x86_64")
url="https://github.com/ManelCG/clavis"
depends=("gtk3" "cairo" "pango" "pixman" "pass" "make" "pkgconf" "xdotool" "xclip" "grep" "awk" "gnupg")
conflicts=("clavis")
optdepends=()

_gitroot="https://github.com/ManelCG/clavis.git"
_gitname="clavis"
source=()
sha256sums=()

package(){
  echo "Building Clavis..."
  cd ${srcdir}

  echo "Downloading Clavis from github..."
  if [ -d ${srcdir}/${_gitname} ]; then
    cd "${srcdir}/${_gitname}"
    git pull origin
    echo "Local files updated..."
  else
    git clone ${_gitroot} ${srcdir}/${_gitname}
  fi

  cd ${srcdir}/${_gitname}
  git checkout develop

  echo "Git checkout done"

  echo "Starting configure"

  make BDIR=${pkgdir} archlinux
}