summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a99229fef0d5ecfc03964dbdd2acda9c079a683b (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
# Maintainer: Christoph Rissner <resi@rissner.net>
pkgbase=1px
pkgname=${pkgbase}-git
pkgver=r18.6b4431f435a5
pkgrel=1
pkgdesc="Useful small-space widgets for my X11 desktop (battery level)"
arch=('i686' 'x86_64')
url="https://github.com/diresi/1px"
license=('MIT')
groups=()
depends=('cairo' 'libxfixes' 'libx11')
makedepends=('git' 'meson')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
gitname=master
source=('git+https://github.com/diresi/1px.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
    (cd bat && \
        meson builddir && \
        meson compile -C builddir)
}

package() {
	cd "$srcdir/${pkgname%-git}"
    install -s -p bat/builddir/1pxbat -D "$pkgdir"/usr/bin/1pxbat
    install -m 0644 -p LICENSE -D "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}