blob: 0760307587da4a0cab41dbf0e02ad5a0645bf3bb (
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
|
# Maintainer: database64128 <free122448@hotmail.com>
pkgname=uvw-git
pkgver=2.12.1_libuv_v1.44.r1.g684d912
pkgrel=1
pkgdesc="Header-only, event based, tiny and easy to use libuv wrapper in modern C++"
arch=(x86_64)
url="https://github.com/skypjack/uvw"
license=('MIT')
depends=('libuv')
makedepends=('cmake' 'git')
provides=('uvw')
conflicts=('uvw')
source=("$pkgname::git+$url.git")
b2sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -S "$pkgname" -B build -Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DFETCH_LIBUV=OFF \
-DUSE_LIBCPP=OFF
make -C build
}
package() {
make -C build DESTDIR="$pkgdir/" install
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/uvw/LICENSE"
}
|