blob: 82d3e13db5a6fe4411cb5daa8c7cd20ae461cb30 (
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
|
# Maintainer: weqeqq <ggmodwear@gmail.com>
pkgname=file-cpp-git
pkgver=r12.fcb5eca
pkgrel=2
pkgdesc="C++ wrapper library around std::fstream"
arch=(any)
url="https://github.com/weqeqq/file-cpp"
license=('MIT')
makedepends=('git' 'cmake' 'make' 'gcc')
provides=('file-cpp')
conflicts=('file-cpp')
source=("git+https://github.com/weqeqq/file-cpp.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/file-cpp"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/file-cpp"
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DFILE_BUILD_TESTS=OFF
cmake --build build
}
package() {
cd "$srcdir/file-cpp"
DESTDIR="$pkgdir" cmake --install build
}
|