summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48684467b1de1bac78856f2d080a93f1cd8766b4 (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
# Maintainer: Vladislav Tyulbashev <vladislav.tyulbashev@yandex.ru>

pkgname=rupass-git
pkgver=20130522
pkgrel=1
pkgdesc="Simple password generator"
arch=('i686' 'x86_64')
url="https://github.com/vtyulb/RuPass"
license=('GPL')
depends=('qt5-base')
makedepends=('git')

_gitroot="https://github.com/vtyulb/RuPass.git"
_gitname="RuPass"

build() {
  cd $srcdir
  msg "Conencting to the GIT server..."
  if [[ -d $srcdir/$_gitname ]] ; then
    cd $_gitname
    git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done"
  msg "Starting make"
  if [[ -d ${srcdir}/build ]]; then
    msg "Cleaning previous build directory..."
    rm -rf ${srcdir}/build
  fi

  cp -r $srcdir/$_gitname ${srcdir}/build
  cd ${srcdir}/build

  qmake-qt5 -makefile
  make
}

package() {
  cd ${srcdir}/build
  mkdir -p $pkgdir/usr/bin
  cp -f RuPass $pkgdir/usr/bin/rupass
}