summaryrefslogtreecommitdiff
path: root/dbmodel/PKGBUILD
blob: b45bfcad8e30e78a8882cf65d41400e2ec6f7b80 (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
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=dbmodel
pkgver=0.3.r138.c78245d
pkgrel=148
_pkgver=${pkgver%.*.*}
_commit=${pkgver##*.}
pkgdesc='visualize a database'
arch=('i686' 'pentium4' 'x86_64')
url='https://oxygene.sk/projects/dbmodel/'
license=('GPL2')
groups=()
_pinned_dependencies=(
  'gcc-libs=13.2.1'
  'glibc>=2.31'
  'qt5-base=5.15.10+kde+r147'
  'qt5-svg=5.15.10+kde+r8'
)
depends=('qt5-tools' "${_pinned_dependencies[@]}")
makedepends=('git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=(
    "${pkgname}::git+https://git.eckner.net/Erich/dbmodel#commit=${_commit}"
)
sha512sums=('SKIP')

pkgver(){
  cd "${pkgname}"
  _rev=$(
    git rev-parse --short "${_commit}"
  )
  printf '%s.r%s.%s\n' \
    "$(
      git archive "${_commit}" -- 'src/src.pro' | \
        sed -n '
          s/^VERSION = //
          T
          p
        '
    )" \
    "$(
      git rev-list --count "${_commit}"
    )" \
    "$(
      git rev-parse --short "${_commit}"
    )"
}

build() {

    cd "${srcdir}/${pkgname}"
    qmake PREFIX=/usr
    make

}

package() {

    cd "${srcdir}/${pkgname}"
    make "INSTALL_ROOT=${pkgdir}" install

}