summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8feeca2f2a41746482b9c5396f95e1ac81a81efc (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=indent-git
pkgver=2.2.13.r0.g6cbad4c
pkgrel=1
pkgdesc="C language source code formatting program"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/indent/"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'gperf' 'texi2html')
provides=("indent=$pkgver")
conflicts=('indent')
source=("git+https://git.savannah.gnu.org/git/indent.git")
sha256sums=('SKIP')


pkgver() {
  cd "indent"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "indent"

  ./bootstrap
  ./configure \
    --prefix="/usr" \
    --enable-maintainer-mode
  CC_FOR_BUILD="gcc" make
}

check() {
  cd "indent"

  make check
}

package() {
  cd "indent"

  make \
    DESTDIR="$pkgdir" \
    docdir="/usr/share/doc/indent" \
    install
}