blob: 6f7ed3bc113e73d71bb4d5dce0522677b6d2f1b7 (
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
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: David Castellon <bobosito000 at gmail dot com>
pkgname=tpl-git
pkgver=v1.6.1.r16.f8138adr28.f8138ad
pkgrel=2
pkgdesc="C library for C data type serialization."
arch=('i686' 'x86_64')
url="http://troydhanson.github.io/tpl/"
license=('Apache')
# depends=()
makedepends=('make' 'git' 'autoconf')
optdepends=()
provides=('tpl')
source=("tpl"::"git+https://github.com/troydhanson/tpl.git")
sha256sums=('SKIP')
md5sums=()
validpgpkeys=()
pkgver() {
cd $srcdir/tpl
# printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
# prepare() {
# cd $srcdir/tpl
# }
build() {
cd $srcdir/tpl
autoreconf -i
./configure --prefix=/usr
make
}
package() {
cd $srcdir/tpl
DESTDIR="$pkgdir" make install
}
|