summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63762574cad92e27f3559a37a0815206a2086cb0 (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
#Maintainer: Sebastian "muxelplexer" Muxel <sebastian@muxel.dev>

pkgname=termnote-git
makedepends=("git" "cmake")
pkgrel=1
pkgver=2.0.0.r10.c93c6b4
pkgdesc="Terminal Notes Application"
arch=(x86_64)
url="https://github.com/muxelplexer/termNote"
license=(MIT)
provides=(termNote)
conflicts=(termNote)
source=("termnote::git+${url}.git")
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}"
	git submodule update --init
	./ext/vcpkg/bootstrap-vcpkg.sh
}

build() {
	cd "$srcdir/${pkgname%-git}"
	cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-s" CMakeLists.txt
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}