summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22ec647bb9c5f6641b70375136d25fc225e613d0 (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
# Maintainer: Jose Lopes <josemslopes at gmail dot com>
pkgname=sipsak-git
pkgver=r524.0bdf6e6
pkgrel=1
pkgdesc='A small command line tool for developers and administrators of Session Initiation Protocol (SIP) applications.'
arch=('x86_64')
url='https://github.com/nils-ohlmeier/sipsak'
license=('GPL2')
groups=('voip')
depends=('gnutls' 'openssl' 'c-ares')
makedepends=('git' 'gcc')
source=("${pkgname}::git+https://github.com/nils-ohlmeier/sipsak.git")
noextract=()
md5sums=('SKIP')

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

prepare() {
    cd "${srcdir}/${pkgname}"
    autoreconf --install
}

build() {
    cd "${srcdir}/${pkgname}"
    ./configure --prefix=/usr
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    make DESTDIR=${pkgdir} install
}

# vim:set ts=2 sw=2 et: