summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/crosstool-ng/PKGBUILD42
-rw-r--r--libre/crosstool-ng/ctng-libre.patch19
2 files changed, 41 insertions, 20 deletions
diff --git a/libre/crosstool-ng/PKGBUILD b/libre/crosstool-ng/PKGBUILD
index 971bbf669..7b77166fe 100644
--- a/libre/crosstool-ng/PKGBUILD
+++ b/libre/crosstool-ng/PKGBUILD
@@ -1,33 +1,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.19.0
-pkgrel=1
-pkgdesc="A versatile cross toolchain generator (eglibc addons patch)"
-arch=('i686' 'x86_64' 'mips64el')
-url="http://crosstool-ng.org/"
-license=(GPL2)
-depends=('cvs' 'curl' 'gperf' 'wget')
-makedepends=('libtool')
-optdepends=('subversion: for retrieving eglibc sources')
-source=(http://crosstool-ng.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
- #libc_ports_short_name.patch)
+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)
-build() {
- cd $srcdir/$pkgname-$pkgver
- #patch -Np1 -i $srcdir/libc_ports_short_name.patch
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../ctng-libre.patch
+}
+build() {
+ cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
-
- install -Dm644 ct-ng.comp ${pkgdir}/usr/share/bash-completion/completions/ct-ng
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ct-ng.comp "$pkgdir"/usr/share/bash-completion/completions/ct-ng
}
-sha1sums=('b7ae3e90756b499ff5362064b7d80f8a45d09bfb')
-sha256sums=('cd54f20bb8190533b21c9cf7f93c9073c22d59541f52774c3f3053264ba53a93')
+sha256sums=('67122ba42657da258f23de4a639bc49c6ca7fe2173b5efba60ce729c6cce7a41'
+ '75e06ee8e4cb2629564604498796240cbe57219bd235cade6b6982b7b0836136')
diff --git a/libre/crosstool-ng/ctng-libre.patch b/libre/crosstool-ng/ctng-libre.patch
new file mode 100644
index 000000000..4c9c85435
--- /dev/null
+++ b/libre/crosstool-ng/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"