summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ceb413566fe89118e446385bd6e6b399e7dccc98 (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=cobang
pkgver=0.5.6+4+ga54f716
pkgrel=4
pkgdesc="A QR code scanner desktop app for Linux"
arch=('any')
url="https://github.com/hongquan/CoBang"
license=('GPL3')
depends=('gst-python' 'python-gobject' 'gst-plugin-gtk' 'libnm'
         'python-pillow>=7.1.2' 'python-logbook' 'python-single-version' 'zbar'
         'python-kiss-headers')
makedepends=('meson' 'python-setuptools' 'gobject-introspection')
_commit='a54f71683fcf6403962923f95601cd676a03788e'
source=("$pkgname::git+https://github.com/hongquan/CoBang.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --tags | sed 's/^v//;s/-/+/g'
}

build() {
	arch-meson "$pkgname" build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}