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

pkgname=autoconf-archive-git
pkgver=2023.02.20.r2.g919e299
pkgrel=1
pkgdesc="A collection of freely re-usable Autoconf macros"
arch=('any')
url="https://www.gnu.org/software/autoconf-archive/"
license=('GPL3' 'custom')
depends=('autoconf')
optdepends=('automake: macros for use with it')
makedepends=('git' 'python')
provides=("autoconf-archive=$pkgver")
conflicts=('autoconf-archive')
source=("git+https://git.savannah.gnu.org/git/autoconf-archive.git")
sha256sums=('SKIP')


prepare() {
  cd "autoconf-archive"

  git submodule add --force --depth 1 https://git.savannah.gnu.org/git/gnulib.git
}

pkgver() {
  cd "autoconf-archive"

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

build() {
  cd "autoconf-archive"

  ./bootstrap.sh
  ./configure \
    --prefix="/usr"
  make maintainer-all
  make
}

package() {
  cd "autoconf-archive"

  make DESTDIR="$pkgdir" install
}