summaryrefslogtreecommitdiff
path: root/libre/texinfo-static/PKGBUILD
blob: 2f57d4ce933222c1adf7c6a97ef1d8cae95f5406 (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
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of texinfo

_pkgname=texinfo
pkgname=texinfo-static
pkgver=6.1
pkgrel=1
pkgdesc='GNU documentation system for on-line information and printed output (static libraries only)'
arch=('i686' 'x86_64' 'armv7h')
url='http://www.gnu.org/software/texinfo/'
license=('GPL3')
depends=('ncurses-static' 'perl-static' 'texinfo')
options=('staticlibs')
source=(ftp://ftp.gnu.org/pub/gnu/$_pkgname/$_pkgname-$pkgver.tar.xz{,.sig}
        texinfo-6.0-disable-failing-info-test.patch)
md5sums=('1d7ec1888fae00730693597852b00cde'
         'SKIP'
         '8bfaa21315a8a6184811de8478005d22')
validpgpkeys=('EAF669B31E31E1DECBD11513DDBC579DAB37FBA9') # Gavin Smith

prepare() {
  cd $_pkgname-$pkgver
  patch -p1 -i ../texinfo-6.0-disable-failing-info-test.patch
}

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  make -C $_pkgname-$pkgver check
}

package() {
  make -C $_pkgname-$pkgver DESTDIR="$pkgdir" install

  # remove conflicting files
  rm -vr ${pkgdir}/usr/{bin,share}
  rm -v ${pkgdir}/usr/lib/$_pkgname/*.so
}