summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d6f3f3ee50a8a93fff16bcf641bce1221fd6987 (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
# Maintainer : Bobby Hamblin <hamblingreen@hotmail.com>
# Contributor : CodeZ <navintiwari08@gmail.com>

pkgname=fluxcomp
pkgver=1.4.4.r0.d873d29
pkgrel=2
pkgdesc="flux is an interface description language used by DirectFB"
arch=('x86_64' 'aarch64')
url="https://github.com/kevleyski/fluxcomp"
license=('GPL3')
depends=('gcc-libs')
makedepends=('git')
provides=("fluxcomp")
conflicts=("flux-git")
source=("fluxcomp::git+${url}.git#branch=distrotech-flux")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/fluxcomp"
  printf "%s" "$(awk -F= '/^FLUXCOMP_(MAJOR|MINOR|MICRO)_VERSION/ { printf "%s.", $2; }' configure.in | sed 's/.$//').r0.$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/fluxcomp"
  autoreconf -fi
  ./configure
  make
}

package() {
  cd "${srcdir}/fluxcomp"
  install -D -m 0755 src/fluxcomp "${pkgdir}/usr/bin/fluxcomp"
  install -D -m 0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}