summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4905a4cc577b5f69ac4677aa767c2fcd263fe8b3 (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
# Maintainer:  Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=screen-selector-git
pkgver=0.1.1.r0.ga2f5263
pkgrel=1
pkgdesc='Unity plugin replacing the proprietary ScreenSelector.so, using GTKĀ 4'
arch=('x86_64' 'aarch64')
url='https://linkmauve.fr/dev/screen-selector/'
license=('GPL3')
depends=('gtk4')
makedepends=('cargo')
conflicts=('screen-selector')
provides=('screen-selector' 'ScreenSelector.so')
source=("git+https://git.linkmauve.fr/screen-selector.git")
sha256sums=('SKIP')
install=screen-selector.install

pkgver() {
  cd screen-selector
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd screen-selector
  cargo build --release
}

package() {
  cd screen-selector
  install -Dm755 target/release/libscreen_selector.so "$pkgdir"/usr/lib/ScreenSelector.so
}