summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5153a04c0895ef16b7439890c0953d793a502a8 (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
# Maintainer: Zanny <lordzanny@gmail.com>

pkgname=verdigris-git
_name=verdigris
pkgver=r137.de24629
pkgrel=1
pkgdesc="Qt without moc: set of macros to use Qt without needing moc"
arch=('any')
url="https://github.com/woboq/verdigris"
license=('LGPL3')
depends=(qt5-base)
makedepends=()
provides=(verdigris)
conflicts=(verdigris)
source=("git+https://github.com/woboq/$_name.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_name"

# Git, tags available
#    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}


# verdigris is header-only - the qmake routine is just a test harness
check() {
    cd "$srcdir/$_name"
    qmake
    make
}

package() {
    for header in 'wobjectdefs.h' 'wobjectimpl.h'; do
        install -Dm644 "$srcdir/$_name/src/$header" "$pkgdir/usr/include/$header"
    done
}