blob: be09dbdfbe64ef834878a5e31c0386bc855070c0 (
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
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=iscdcommons-git
pkgver=20210723.r39
pkgrel=4
pkgdesc="Common library for ISCD tools, e.g. elastic"
arch=('x86_64')
url="https://github.com/ISCDtoolbox/Commons"
license=('GPL3')
depends=('glibc')
makedepends=('git')
provides=('iscdcommons')
conflicts=('iscdcommons')
source=("${pkgname%-git}::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') \
"$(git rev-list --count HEAD)"
}
build() {
cd ${pkgname%-git}
[[ -d build ]] || mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
make
}
package() {
cd ${pkgname%-git}
install -Dm644 build/libCommons.so "$pkgdir"/usr/lib/libCommons.so
install -d "$pkgdir"/usr/share/include/${pkgname-git}
cp sources/*.c sources/*.h "$pkgdir"/usr/share/include/${pkgname-git}
}
|