summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2b731fea59eee23365134484cdfa703c67a14c2 (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
# Maintainer: Alexander 'chron' Kempen <chronischzuspaet at gmail dot com>
pkgname=httpdiff-git
_pkgname=httpdiff
pkgver=31.7887644
pkgrel=1
pkgdesc='Perform the same request against two HTTP servers and diff the results'
arch=('i686' 'x86_64')
url='https://github.com/jgrahamc/httpdiff'
license=('GPL2')
makedepends=('git' 'go')
source=('git+https://github.com/jgrahamc/httpdiff')

sha256sums=('SKIP')

build() {
    cd ${srcdir}/${_pkgname}
    make all
}

package() {
    cd ${srcdir}/${_pkgname}
    install -Dm 755 "${srcdir}/${_pkgname}/httpdiff" "${pkgdir}/usr/bin/httpdiff"
    install -Dm 644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}

pkgver() {
    cd $srcdir/${_pkgname}
    echo $(git rev-list --count master).$(git rev-parse --short master)
}