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

pkgname=crosstool-ng
pkgver=1.22.0
pkgrel=1.parabola1
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'
            '75e06ee8e4cb2629564604498796240cbe57219bd235cade6b6982b7b0836136')