-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPKGBUILD.stable
More file actions
33 lines (28 loc) · 902 Bytes
/
PKGBUILD.stable
File metadata and controls
33 lines (28 loc) · 902 Bytes
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: DIMFLIX <dimflix.official@gmail.com>
pkgname=bluevein
pkgver=0.1.0
pkgrel=1
pkgdesc="Bluetooth dual-boot key synchronization service"
arch=('x86_64')
url="https://github.com/meowrch/BlueVein"
license=('GPL-3.0')
depends=('dbus')
makedepends=('rust' 'cargo')
provides=('bluevein')
conflicts=('bluevein-git' 'bluevein-bin')
install=bluevein.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP') # Will be updated by CI
build() {
cd "BlueVein-$pkgver"
cargo build --release --locked
}
package() {
cd "BlueVein-$pkgver"
# Install binary
install -Dm755 target/release/bluevein "$pkgdir/usr/bin/bluevein"
# Install systemd service
install -Dm644 systemd/bluevein.service "$pkgdir/usr/lib/systemd/system/bluevein.service"
# Install documentation
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}