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

pkgname=autoconf-git
pkgver=2.72c.r15.g1982523c
pkgrel=1
pkgdesc="An extensible package of M4 macros that produce shell scripts to automatically configure software source code packages"
arch=('any')
url="https://www.gnu.org/software/autoconf/autoconf.html"
license=('GPL2' 'custom')
depends=('sh' 'perl' 'awk' 'm4' 'texinfo')
makedepends=('git' 'help2man')
provides=("autoconf=$pkgver")
conflicts=('autoconf')
source=("git+https://git.savannah.gnu.org/git/autoconf.git")
sha256sums=('SKIP')


pkgver() {
  cd "autoconf"

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

build() {
  cd "autoconf"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "autoconf"

  #make check
}

package() {
  cd "autoconf"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING.EXCEPTION" -t "$pkgdir/usr/share/licenses/autoconf"

  rm "$pkgdir/usr/share/info/standards.info"
}