summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a154d45071e362121a79abb2128ab8b3c9929ed (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
# Maintainer: Lutz Freitag <aur.lutz@gottliebtfreitag.de>

pkgname=simplyfile-git
pkgver=1.1.r0.cb18301
pkgrel=1
pkgdesc='C++ wrappers around linux file descriptors'
url='https://github.com/gottliebtfreitag/simplyfile'
arch=('any')
license=('MIT')
makedepends=('git' 'cmake')
conflicts=('simplyfile')
provides=('simplyfile')
source=("git+https://github.com/gottliebtfreitag/simplyfile.git#tag=1.1")
sha256sums=('SKIP')

pkgver() {
    git -C simplyfile describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
    cmake -B simplyfile/build -S simplyfile \
        -DCMAKE_BUILD_TYPE:STRING='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -Wno-dev
    cmake --build simplyfile/build --target all
}

package() {
    cmake --build simplyfile/build --target install DESTDIR="$pkgdir"
    install -D -m644 simplyfile/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}