~pvsr/qbpm

ref: bab6b19153e9cf288ec0dd26240f31e381afb492 qbpm/PKGBUILD -rw-r--r-- 741 bytes
bab6b191Peter Rice nix flake dev shell 5 months ago
                                                                                
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
# Maintainer: Peter Rice <{first name}@peterrice.xyz>

pkgname=qbpm-git
pkgver=0.3.r16.g7899e67
pkgrel=1
pkgdesc="A profile manager for qutebrowser"
url="https://github.com/pvsr/qbpm"
license=('GPL')
sha512sums=('SKIP')
arch=('any')
depends=('python' 'python-pyxdg')
makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
provides=('qbpm')
conflicts=('qbpm')
source=("git://github.com/pvsr/qbpm")

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

package() {
  cd qbpm
  install -D -m644 completions/qbpm.fish ${pkgdir}/usr/share/fish/vendor_completions.d/qbpm.fish
  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/qbpm/LICENSE
  python setup.py install --root="$pkgdir" --optimize=1
}