summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 344207cfc1a9c6ec2fa336687bdeaa7523af6f0e (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: Michael Kuc <michaelkuc6 at gmail dot com>
_pkgname=libyui
pkgname=${_pkgname}-git
pkgver=4.2.23.r24.gb584b47f
pkgrel=1
pkgdesc="Libyui is a widget abstraction library providing Qt, GTK and ncurses frontends. Originally it was developed for YaST but it can be used in any independent project."
arch=('x86_64')
url="https://github.com/libyui/libyui"
license=('GPLv3')
makedepends=('cmake>=3.21')
provides=("${_pkgname}")
conflicts=()
epoch=1
source=("${_pkgname}::git+https://github.com/libyui/libyui.git")

sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}/${_pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/${_pkgname}/${_pkgname}"
	cmake -G "Unix Makefiles" -S . -B build --install-prefix=/usr
	cmake --build build
}

package() {
	cd "${srcdir}/${_pkgname}/${_pkgname}/build"
	make DESTDIR="${pkgdir}/" install
	install -m644 -D "${srcdir}/${_pkgname}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README"
}