blob: 6cc688eff7e136846a28aa556fee6e2cceb4fc27 (
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
|
# Maintainer: Andris Pavenis <andris dot pavenis at iki dot fi>
pkgname=dtl-git
_pkgname=dtl
pkgver=r18.9cf6da7
pkgrel=1
pkgdesc="diff template library written in C++ (headers only)"
arch=('any')
url="https://github.com/cubicdaiya/dtl"
license=('BSD')
source=('git+https://github.com/cubicdaiya/dtl.git')
makedepends=('git' 'scons' 'gtest')
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
check() {
cd "${srcdir}/${_pkgname}/test"
scons .
./dtl_test
}
package() {
cd "${srcdir}/${_pkgname}"
install -d ${pkgdir}/usr/include/${_pkgname}
for file in ${srcdir}/${_pkgname}/dtl/*.hpp; do
install -m0644 $file ${pkgdir}/usr/include/${_pkgname}/
done
install -d ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/examples
install -m0644 ${srcdir}/${_pkgname}/examples/SConstruct ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/examples/
install -m0644 ${srcdir}/${_pkgname}/examples/*.cpp ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/examples/
install -m0644 ${srcdir}/${_pkgname}/examples/*.hpp ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/examples/
for file in ChangeLog CONTRIBUTORS README.md; do
install -m0644 ${srcdir}/${_pkgname}/$file ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/
done
install -D -m0644 ${srcdir}/${_pkgname}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}
|