summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8371e2fc205e374768c45e28940f511fa39f133a (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
# Maintainer: mar77i <mar77i at mar77i dot ch>
pkgname=bulk77i-apps-git
_pkgname=bulk77i-apps
pkgrel=1
pkgver=v0.1
pkgdesc="Collection of executable targets that were developed around bulk77i modules"
arch=(x686 x86_64)
url="https://github.com/mar77i/bulk77i-apps"
license=('GPL')
makedepends=('git' 'bulk77i-git')
source=("git+https://github.com/mar77i/bulk77i-apps.git")
md5sums=(SKIP)

pkgver() {
  cd "$_pkgname"
  git describe --tags |sed 's/-/./g'
}

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

package() {
  local lpfx="/usr/share/licenses"
  cd "$srcdir"
  make -C "$_pkgname" DESTDIR="$pkgdir/" PREFIX=/usr install
  install -m644 -D "$_pkgname/LICENSE" "$pkgdir/$lpfx/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: