summaryrefslogtreecommitdiff
path: root/pcr/crosstool-ng/PKGBUILD
blob: 0faeb729e1ea515fa3f0bcf5a2bf03be6158069b (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
# Maintainer (Arch):  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor (Arch): jwwolf <jwwolf+arch@gmail.com>
# Contributor (Arch): Bernhard Walle <bernhard@bwalle.de>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Maintainer: fauno <fauno@kiwwwi.com.ar>
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: Josh Branning <lovell.joshyyy@gmail.com>

pkgname=crosstool-ng
pkgver=1.22.0
pkgrel=1.parabola2
pkgdesc='Versatile cross-toolchain generator, with Linux-libre kernel support'
arch=('i686' 'x86_64')
url='http://crosstool-ng.org/'
license=('GPL2')
depends=('make' 'gperf' 'wget')
makedepends=('help2man')
options=('!makeflags')
source=(http://crosstool-ng.org/download/$pkgname/$pkgname-$pkgver.tar.bz2
        ctng-libre.patch)

prepare() {
  cd $pkgname
  patch -Np1 -i ../ctng-libre.patch
}

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

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  install -Dm644 ct-ng.comp "$pkgdir"/usr/share/bash-completion/completions/ct-ng
}
sha256sums=('d6338a9b33f9d972167049bbe76e88b1e9248466a53df08dcfe8bcfe849d8d83'
            '36070c7691a150068ab47f01ba59716a1ffc69a08d88347f30c5d60c416adcfc')