summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e09548bfb8a28f87e0e4e85016192ddb95a15d52 (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
# Maintainer: 2ion <dev@2ion.de>
pkgname=bunsen-common-git
pkgver=r39.cd8ff41
pkgrel=1
pkgdesc="Shared shell scripts commonly used in BunsenLabs Linux projects"
arch=('any')
url="https://github.com/BunsenLabs/bunsen-common"
license=('GPL3')
depends=('bash' 'ncurses')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/BunsenLabs/bunsen-common.git#branch=master')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

check() {
  cd "$srcdir/${pkgname%-git}"
  bash -n bl-include.cfg
  bash -n yad-includes
}

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm 644 bl-include.cfg                  "${pkgdir}/usr/lib/bunsen/common/bl-include.cfg"
  install -Dm 644 yad-includes                    "${pkgdir}/usr/lib/bunsen/common/yad-includes"
  install -Dm 644 distributor-logo-bunsenlabs.svg "${pkgdir}/usr/share/icons/hicolor/scalable/places/distributor-logo-bunsenlabs.svg"
}