summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8db17494f097a57b77bd244cf40de021af3511c (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
# Contributor: Eric Schulte <eschulte@grammatech.com>
# Maintainer: Eric Schulte <eschulte@grammatech.com>
_srcname=protobuf
pkgname=cl-${_srcname}-git
pkgver=r137.3764ef2
pkgrel=1
pkgdesc="Protobuf is a Common Lisp implementation of Google's protocol buffers."
arch=('x86_64')
url="https://github.com/brown/protobuf"
license=('BSD')
optdepends=('boost' 'protobuf')
depends=()
makedepends=('git' 'make')
provides=("cl-${_srcname}")
source=('git://github.com/brown/protobuf.git')
sha512sums=('SKIP')

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

build() {
    cd "$_srcname/protoc/lisp/"
    cp /usr/include/google/protobuf/stubs/strutil.h .
    INSTALL_ROOT=/usr/ PROTOC_ROOT=/usr/ make
}

package() {
  cd "$_srcname/protoc/lisp/"
  mkdir -p "$pkgdir"/usr
  INSTALL_ROOT="$pkgdir"/usr/ PROTOC_ROOT=/usr/ make install
}