blob: b328d9a47f798fcb04c9b9db3ce8ecebc843be34 (
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
|
# Maintainer: RiverOnVenus <error@zhui.dev>
pkgname=toxext-git
pkgver=0.0.3.r1.ga746a99
pkgrel=1
pkgdesc='An extension library for tox'
arch=('x86_64')
url='https://github.com/toxext/toxext'
license=('GPL-3.0-only')
makedepends=('git' 'cmake' 'toxcore')
provides=('libtoxext.a')
conflicts=('toxext')
options=('!lto')
source=("$pkgname"::"git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/-/.r/;s/-/./'
}
prepare() {
cd $pkgname
mkdir -p build
}
build() {
cmake -B build -S "$pkgname" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|