-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
35 lines (34 loc) · 957 Bytes
/
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
# Maintainer: clamsfeel2 <clamsfeel@proton.me>
pkgname="nitch++-git"
pkgdesc="System information fetch tool written in C++"
pkgver=0.1.0
pkgrel=1
arch=('x86_64')
license=('MIT')
url="https://github.com/clamsfeel2/nitchplusplus"
source=("git+https://github.com/clamsfeel2/nitchplusplus.git#commit=HEAD")
makedepends=('gcc' 'cmake' 'ninja')
sha256sums=('SKIP') # Skip since using latest commit
# validpgpkeys=(4FE361904964CAC3E1CE241D57A36E69AE3A6842) # Not sure if tihs is correct GPG implentation, so commenting for now.
prepare() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
if [ ! -d "$srcdir/build" ]; then
echo "ERROR: unable to create build directory."
exit 1
fi
}
build() {
cd "$srcdir/build"
cmake -GNinja ../nitchplusplus && ninja
}
package() {
# Install onto system
cd "$srcdir/build"
ninja
# Some cleaning up in build dir so it is not cluttered
# Not necessary
cd "$srcdir/.."
cp $srcdir/build/nitch++ .
rm -r nitchplusplus src
}