summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7975e6a9174f84cd48d24a356f224c171d4a9421 (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
# Maintainer: Slash <demodevil5[at]yahoo[dot]com>

pkgname=qstat-git
pkgver=r467.d249332
pkgrel=1
pkgdesc="A command line utility that displays the status of internet game servers"
url="https://github.com/multiplay/qstat"
arch=('i686' 'x86_64')
license=('Artistic2.0')
depends=('glibc')
makedepends=('git')
replaces=('qstat-cvs' 'qstat-svn')
conflicts=('qstat' 'qstat-cvs' 'qstat-svn')
provides=('qstat')
source=('qstat::git+https://github.com/multiplay/qstat.git')
sha256sums=('SKIP')

pkgver() {
    cd "qstat"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/qstat"

    ./autogen.sh
    ./configure --prefix=/usr --sysconfdir=/etc
    make
}

package() {
    cd "${srcdir}/qstat"

    make DESTDIR="${pkgdir}" install
}