-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
49 lines (45 loc) · 1.28 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
45
46
47
48
49
# Maintainer: xVermillionx <[email protected]>
_pkgname="rot8cpp"
# pkgname="${_pkgname}-git"
pkgname="${_pkgname}"
pkgver=r29.215e782
pkgrel=1
epoch=1
pkgdesc="rot8cpp for rotating screen"
url="https://github.com/xVermillionx/rot8cpp"
arch=(x86_64 aarch64)
license=(custom:CLOSED)
provides=("${pkgname}")
conflicts=("${pkgname}")
# provides=("${pkgname%-git}")
# conflicts=("${pkgname%-git}")
depends=()
makedepends=(git cmake jsoncpp)
# optdepends=(
# "grim: required for the screenshot portal to function"
# "slurp: support for interactive mode for the screenshot portal; one of the built-in chooser options for the screencast portal"
# )
source=("${_pkgname}::git+https://github.com/xVermillionx/rot8cpp.git")
sha256sums=('SKIP')
options=(!makeflags !buildflags !strip)
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${_pkgname}"
cmake -B build
make -C build rot8cpp
cd ..
}
package() {
cd "${srcdir}/${_pkgname}"
make -C build rot8cpp
# make -C build install
# make install
install -Dm755 build/rot8cpp -t "${pkgdir}/usr/bin"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}