diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-12 17:15:47 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-12 17:18:02 -0300 |
commit | 67d68b250a3069d3be23a0f2fcb82486eedaba73 (patch) | |
tree | 88170b25a3fe92252db701fd60648ded3a325425 /pcr/crosstool-ng-git/PKGBUILD | |
parent | baf24e9cd6c93bd843f7513af3ed8b7eabc06eb4 (diff) |
crosstool-ng-git: add new package to [pcr]
Diffstat (limited to 'pcr/crosstool-ng-git/PKGBUILD')
-rw-r--r-- | pcr/crosstool-ng-git/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pcr/crosstool-ng-git/PKGBUILD b/pcr/crosstool-ng-git/PKGBUILD new file mode 100644 index 000000000..0bea2cd0b --- /dev/null +++ b/pcr/crosstool-ng-git/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer (Arch): Ivan Shapovalov <intelfx100@gmail.com> +# Contributor (Arch): goodmen <goodmenzy@gmail.com> +# Maintainer: André Silva <emulatorman@parabola.nu> +# Maintainer: fauno <fauno@kiwwwi.com.ar> +# Contributor: Márcio Silva <coadde@parabola.nu> + +_pkgname=crosstool-ng +pkgname=crosstool-ng-git +pkgver=1.22.0.r21.g2d3c70d +_gitver=2d3c70dd3ddc5a569c0fa1a833fd5920029b5794 +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=('git' 'help2man') +options=('!makeflags') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=(git://github.com/crosstool-ng/crosstool-ng#commit=$_gitver + ctng-libre.patch) + +pkgver() { + cd $_pkgname + git describe --long --tags | sed 's/^crosstool-ng-//;s/-/.r/;s/-/./' +} + +prepare() { + cd $_pkgname + patch -Np1 -i ../ctng-libre.patch +} + +build() { + cd $_pkgname + ./bootstrap + ./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=('SKIP' + '75e06ee8e4cb2629564604498796240cbe57219bd235cade6b6982b7b0836136') |