summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ab85bc58aaa15796ab52da1cca1912441e58ada (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
42
43
44
45
46
47
48
49
50
# Maintainer: Tomasz Pakula <forest10pl@gmail.com>
_pkgname=community-configs-for-protopedal
pkgname=community-configs-for-protopedal-git
provides=($_pkgname)
pkgver=1.0
pkgrel=2
pkgdesc="Community-sourced configurations for protopedal."
arch=('any')
url="https://github.com/Lawstorant/community-configs-for-protopedal"
license=('GPL3')
depends=(
  bash
  joyutils
  protopedal
)
makedepends=(
  git
  make
  sed
)
source=(
  git+https://github.com/Lawstorant/community-configs-for-protopedal
)
sha256sums=(
  'SKIP'
)

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

build() {
  cd "$srcdir/$_pkgname"
  make all
}

package() {
  cd "$srcdir/$_pkgname"
  make prefix="$pkgdir" install
  
  echo ""
  echo " If you want to use installed configurations without system restart"
  echo " execute following commands:"
  echo ""
  echo " # systemctl daemon-reload"
  echo " # udevadm control --reload"
  echo " # udevadm trigger"
  echo ""
}