blob: 0b161d540f6d2eec405c6507ba7da0b7d4fe57a3 (
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
|
# Maintainer: Antoine Viallon <antoine.viallon@gmail.com>
pkgname=kpack-git
_pkgname=kpack
pkgver=1.1.0.r2.gec7620f
pkgrel=2
license=('MIT')
pkgdesc='Manipulates KnightOS software packages'
groups=("knightos")
makedepends=("cmake" "asciidoc")
arch=("x86_64")
url='https://github.com/KnightOS/kpack'
source=("$pkgname::git+https://github.com/KnightOS/${_pkgname}.git")
sha256sums=('SKIP')
provides=('kpack')
conflicts=('kpack')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
CFLAGS+=" -w"
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$pkgname"
DESTDIR="$pkgdir/" make install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|