summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43aebf942423d6dfc8105e11958f48d619b72d9e (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
# Maintainer: Martin Kröning <m dot kroening at hotmail dot de>
pkgname=make-fmv-patch-git
pkgver=r21.831ace4
pkgrel=1
pkgdesc='Make FMV patch generator'
arch=('any')
url="https://github.com/clearlinux/${pkgname%-git}"
license=('MIT')
depends=('perl' 'ctags' 'gcc>=6.0.0')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/clearlinux/${pkgname%-git}.git")
sha256sums=('SKIP')

pkgver() {
        cd "$srcdir/${pkgname%-git}"
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

check() {
        cd "$srcdir/${pkgname%-git}/tests"
        make distclean all

        cd "$srcdir/${pkgname%-git}"
        [[ -n "$(perl make-fmv-patch.pl tests/loop-build.log tests)" ]]
        [[ -n "$(perl make-fmv-patch.pl tests/max-build.log tests)" ]]
}

package() {
        cd "$srcdir/${pkgname%-git}"
        install -Dm755 make-fmv-patch.pl "$pkgdir/usr/bin/make-fmv-patch"
        install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}