summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98a82afc0c1ba3a6fb1e4098e1cda1b648ca85db (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
pkgname=libcoap-git
_gitname=libcoap
pkgver=r1628.a5ffdf3
pkgrel=2
pkgdesc="C-Implementation of CoAP"
arch=('x86' 'x86_64')
url="https://libcoap.net/"
license=('BSD2' 'GPL2')
makedepends=('git' 'doxygen' 'asciidoc')
provides=('libcoap')
conflicts=('libcoap')
source=("$_gitname::git://github.com/obgm/libcoap.git")
md5sums=('SKIP')

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

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

package() {
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir" PREFIX="/usr" install
}

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