blob: 45ab8cfbdc2174bdb9f70c625c876135761b374f (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
_pkgname=fht-share-picker
pkgname="$_pkgname-git"
pkgver=r999ca73
pkgrel=1
pkgdesc='A Wayland XDG screencast output picker'
groups=('fht-desktop')
arch=('x86_64')
url="https://github.com/nferhat/$_pkgname"
license=('GPL-3.0-or-later')
source=("git+$url.git")
sha256sums=('SKIP')
makedepends=(
'git'
'cargo'
'cairo'
'pango'
'graphene'
'gdk-pixbuf2'
)
depends=(
'gtk4'
'glibc'
'glib2'
'gcc-libs'
'libadwaita'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
pkgver() {
cd "$_pkgname"
echo "r$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "$_pkgname"
install -Dm755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: ts=2 sw=2 et:
|