blob: e7565089da3448b45d7a0d8bf9239b9ecd0eab33 (
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: dec05eba <dec05eba at protonmail.com>
pkgname=sibs-git
pkgver=0.1.4.r65.g1d936e7
pkgrel=1
pkgdesc='Simple build system for native languages'
arch=('i686' 'x86_64')
url='https://github.com/DEC05EBA/sibs'
license=('GPL-3.0')
depends=('cmake' 'ninja' 'libgit2' 'curl' 'ccache' 'libarchive')
makedepends=('cmake')
source=('git://github.com/DEC05EBA/sibs.git')
md5sums=('SKIP')
provides=(sibs)
conflicts=(sibs)
build() {
cd "$srcdir/$provides/cmake"
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
}
pkgver() {
cd "$srcdir/$provides"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
check() {
cd "$srcdir/$provides"
./cmake/sibs test
}
package() {
cd "$srcdir/$provides/cmake"
install -Dm644 "$srcdir/$provides/LICENSE" "$pkgdir/usr/share/licenses/$provides/LICENSE"
install -Dm755 "$srcdir/$provides/cmake/sibs" "$pkgdir/usr/bin/sibs"
}
|