-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD
44 lines (40 loc) · 1.19 KB
/
PKGBUILD
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
42
43
44
# Maintainer: Aggelos Tselios <aggelostselios777@gmail.com>
pkgname=nvdialog
_pkgname=nvdialog
pkgver=0.8.0
pkgrel=1
epoch=
pkgdesc="Cross-platform dialog box library written in C, using the host's standard backend."
arch=(x86_64 i686 aarch64)
url="https://tseli0s.github.io/nv.dialog/"
_repo="https://github.com/tseli0s/nvdialog.git"
license=('MIT')
groups=()
depends=(gtk4 libadwaita glibc) # Arch Linux is modern enough to safely say that
# libadwaita won't cause any problems as the default
# backend.
makedepends=(git ninja gcc cmake)
checkdepends=()
optdepends=()
provides=(libnvdialog)
conflicts=(libnvdialog)
replaces=(libnvdialog)
backup=()
options=()
install=
changelog=
source=()
noextract=()
md5sums=()
validpgpkeys=()
build() {
cd .. # Arch wants to go to src/ for some reason :(
[[ -d build/ ]] && rm -rfv build/ # Needed step
cmake . -B build -DNVD_USE_GTK4=ON -DNVD_BUILD_STATIC=OFF -DNVDIALOG_MAXBUF=4096 -G "Ninja" -DWIN32_TARGET=OFF -DCMAKE_BUILD_TYPE=Release
cd build/ && ninja
}
package() {
cd ..
mkdir -p ${pkgdir}/usr/include/nvdialog/ ${pkgdir}/usr/lib/ && cd build
cp -rf ../include/* ${pkgdir}/usr/include/nvdialog/ && cp -rf ./libnvdialog.so* ${pkgdir}/usr/lib/
}