summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 964c9eb357a24851e1d60e50b303bab9f9630375 (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: Anatol Pomozov
# Contributor: KokaKiwi <admin@kokaelkiwi.eu>

pkgname=nanomsg-git
pkgver=1.1.4.r0.ge7f8a751
pkgrel=1
pkgdesc='Simple high-performance implementation of several "scalability protocols"'
url='http://nanomsg.org/'
license=(MIT)
arch=(i686 x86_64)
depends=(glibc)
makedepends=(git cmake)
provides=(nanomsg)
source=(git://github.com/nanomsg/nanomsg)
sha256sums=('SKIP')

pkgver() {
  cd nanomsg
  git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd nanomsg
  ./configure --prefix=/usr
  make
}

check() {
  cd nanomsg
  make test
}

package() {
  cd nanomsg
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}