summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-12 17:15:47 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-12 17:18:02 -0300
commit67d68b250a3069d3be23a0f2fcb82486eedaba73 (patch)
tree88170b25a3fe92252db701fd60648ded3a325425
parentbaf24e9cd6c93bd843f7513af3ed8b7eabc06eb4 (diff)
crosstool-ng-git: add new package to [pcr]
-rw-r--r--pcr/crosstool-ng-git/PKGBUILD47
-rw-r--r--pcr/crosstool-ng-git/ctng-libre.patch19
2 files changed, 66 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')
diff --git a/pcr/crosstool-ng-git/ctng-libre.patch b/pcr/crosstool-ng-git/ctng-libre.patch
new file mode 100644
index 000000000..4c9c85435
--- /dev/null
+++ b/pcr/crosstool-ng-git/ctng-libre.patch
@@ -0,0 +1,19 @@
+diff -Nur crosstool-ng-1.21.0.orig/scripts/build/kernel/linux.sh crosstool-ng-1.21.0/scripts/build/kernel/linux.sh
+--- crosstool-ng-1.21.0.orig/scripts/build/kernel/linux.sh 2015-05-25 16:47:17.000000000 -0300
++++ crosstool-ng-1.21.0/scripts/build/kernel/linux.sh 2015-07-07 04:00:33.900903515 -0300
+@@ -45,13 +45,8 @@
+ k_ver="${CT_KERNEL_VERSION}"
+ ;;
+ esac
+- case "${CT_KERNEL_VERSION}" in
+- 2.6.*) rel_dir=v2.6;;
+- 3.*) rel_dir=v3.x;;
+- 4.*) rel_dir=v4.x;;
+- esac
+- korg_base="http://www.kernel.org/pub/linux/kernel/${rel_dir}"
+- CT_GetFile "linux-${CT_KERNEL_VERSION}" \
++ korg_base="http://linux-libre.fsfla.org/pub/linux-libre/releases/${CT_KERNEL_VERSION}-gnu"
++ CT_GetFile "linux-libre-${CT_KERNEL_VERSION}-gnu" \
+ "${korg_base}" \
+ "${korg_base}/longterm/v${k_ver}" \
+ "${korg_base}/longterm"