blob: 2a7b673b3201d1df776288dc3361873d074fd41e (
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
36
|
# Maintainer: Andrej Halveland (SnipeX_ / SnipeX) <andrej.halv@gmail.com>
pkgname=qnearbyshare-git
pkgver=r51.701d54c
pkgrel=1
pkgdesc='Nearby Share implementation for Linux'
arch=(x86_64)
url='https://github.com/vicr123/QNearbyShare'
license=(MIT)
depends=(glibc gcc-libs crypto++ avahi qt6-base protobuf)
makedepends=(git cmake)
source=(${pkgname%-git}::git+${url}.git)
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd ${pkgname%-git}
git submodule init
git submodule update
}
build() {
cmake -B build -S ${pkgname%-git} \
-DCMAKE_INSTALL_LIBEXECDIR=lib
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|