summaryrefslogtreecommitdiff
path: root/libre/crosstool-ng/PKGBUILD
blob: 7b77166fe039690b0bf9593ab81f25fb0bab8c40 (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
# Contributor (Arch): jwwolf <jwwolf+arch@gmail.com>
# Maintainer: fauno <fauno@kiwwwi.com.ar>
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: André Silva <emulatorman@parabola.nu>

pkgname=crosstool-ng
pkgver=1.21.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')
options=('!makeflags')
source=(http://crosstool-ng.org/download/$pkgname/$pkgname-$pkgver.tar.bz2
        ctng-libre.patch)

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

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

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 ct-ng.comp "$pkgdir"/usr/share/bash-completion/completions/ct-ng
}
sha256sums=('67122ba42657da258f23de4a639bc49c6ca7fe2173b5efba60ce729c6cce7a41'
            '75e06ee8e4cb2629564604498796240cbe57219bd235cade6b6982b7b0836136')