blob: 0966b7f716ff4745bdc33a1960e7b834513ab5ca (
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
|
# Maintainer: nyorain <nyorain at gmail dot com>
pkgname=nytl-git
pkgver=v0.5.r9.0916d47
pkgrel=1
pkgdesc="C++17 header-only utility library"
arch=('any')
url="https://github.com/nyorain/nytl"
license=('Boost')
groups=()
depends=()
makedepends=('git' 'meson' 'gcc' 'ninja')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/nyorain/nytl.git')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
rm -rf build
meson --prefix=/usr build
}
build() {
cd "$srcdir/${pkgname%-git}/build"
ninja
}
package() {
cd "$srcdir/${pkgname%-git}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
DESTDIR="$pkgdir" ninja -C build install
}
|