Skip to content

Instantly share code, notes, and snippets.

@SandaruKasa
Last active December 11, 2022 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SandaruKasa/ef88d80178dfd40710c1467a68ccdb4d to your computer and use it in GitHub Desktop.
Save SandaruKasa/ef88d80178dfd40710c1467a68ccdb4d to your computer and use it in GitHub Desktop.
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,57 @@
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: goodmen <goodmenzy@gmail.com>
+# Contributer: SandaruKasa <sandarukasa plus aur at ya dot ru>
pkgname=crosstool-ng-git
epoch=1
-pkgver=crosstool.ng.1.25.0.33
+pkgver=crosstool.ng.1.25.0.100
pkgrel=1
-pkgdesc="crosstool-NG aims at building toolchains."
+pkgdesc='A versatile (cross-)toolchain generator (git version)'
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="http://crosstool-ng.org/"
-license=('GPL')
-depends=('ncurses' 'make' 'rsync')
-makedepends=('git' 'flex' 'bison' 'gperf' 'help2man' 'unzip' 'lzip' 'python')
+license=('GPL2')
+depends=(
+ git
+ gperf
+ help2man
+ lzip
+ meson
+ ncurses
+ python
+ rsync
+ unzip
+)
+makedepends=('git' 'flex' 'bison' 'gperf' 'help2man' 'unzip' 'lzip' 'python' 'ncurses')
provides=('crosstool-ng')
conflicts=('crosstool-ng')
source=('git+https://github.com/crosstool-ng/crosstool-ng.git')
b2sums=('SKIP')
pkgver() {
- cd crosstool-ng
- git describe --long | sed -r 's/-([0-9,a-g,A-G]{7}.*)//' | sed 's/-/./g'
+ cd crosstool-ng
+ git describe --long | sed -r 's/-([0-9,a-g,A-G]{7}.*)//' | sed 's/-/./g'
}
-#prepare () {
-#cd crosstool-ng
-#git pull --no-edit origin pull/1368/head
-#}
-
-build () {
+prepare() {
cd crosstool-ng
-
- ./bootstrap
- ./configure --prefix=/usr
- make
+ # git pull --no-edit --rebase=false origin pull/1854/head
+ ./bootstrap
}
-package () {
+build() {
cd crosstool-ng
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --with-bash-completion \
+ --with-ncurses
+ make
+}
- make DESTDIR="$pkgdir" install
+package() {
+ cd crosstool-ng
+ make DESTDIR="$pkgdir" install
}
+
+# vim: ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment