summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 961dbc2e43d6a202b8d3484dde81ab82b03af7f7 (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
#!/usr/bin/env bash
# Maintainer: Rob Shinn <rob.shinn@gmail.com> 

pkgname=autodafe-git
pkgver=0.7.r85.g96c07c1
pkgrel=1
pkgdesc='Tools for converting an autotools recipe to a plain Makefile.'
provides=('autodafe')
conflicts=('autodafe')
arch=('any')
license=('BSD-2-Clause')
url="http://www.catb.org/~esr/autodafe"
makedepends=('git' 'asciidoctor')
depends=('python3')
source=("git+https://gitlab.com/esr/autodafe")
sha256sums=('SKIP')
_pkgname=autodafe
_docs=('NEWS' 'README' 'TODO' 'de-autoconfiscation' 'hacking' 'configure')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() { 
  cd "${srcdir}/${_pkgname}"
  make all
  for i in ${_docs[@]}; do
    asciidoctor $i.adoc
  done
}

package() {  
  cd "${srcdir}/${_pkgname}"
  DESTDIR="$pkgdir" prefix=/usr make install
  # install -Dm755 "${srcdir}/${_pkgname}"/configure "${pkgdir}"/usr/bin/configure
  # install -Dm644 "${srcdir}/${_pkgname}"/configure.1 "${pkgdir}"/usr/share/man/man1/configure.1
  # install -Dm755 "${srcdir}/${_pkgname}"/deconfig "${pkgdir}"/usr/bin/deconfig
  # install -Dm644 "${srcdir}/${_pkgname}"/deconfig.1 "${pkgdir}"/usr/share/man/man1/deconfig.1
  for i in ${_docs[@]}; do
    install -Dm644 "${srcdir}/${_pkgname}"/$i.html "${pkgdir}"/usr/share/doc/${_pkgname}/$i.html
   done
}