Created
February 4, 2014 20:00
-
-
Save martell/8811201 to your computer and use it in GitHub Desktop.
PKGBUILD for ct-ng
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Martell Malone <martell malone at g mail dot com> | |
_realname=crosstool-ng | |
pkgname="${_realname}-git" | |
_ver_base=1.19 | |
pkgver=1.19.248.3250492 | |
pkgrel=1 | |
pkgdesc="A cross-platform open-source toolchain system " | |
arch=('i686' 'x86_64') | |
url="http://www.crosstool-ng.org/" | |
license=("MIT") | |
makedepends=("gcc") | |
provides=("${_realname}") | |
conflicts=("${_realname}") | |
depends=() | |
options=('staticlibs' 'strip') | |
source=("${_realname}"::"git+https://github.com/diorcety/crosstool-ng") | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$srcdir/$_realname" | |
printf "%s.%s.%s" "$_ver_base" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd "$srcdir/$_realname" | |
./bootstrap | |
./configure --build=${CHOST} \ | |
--prefix=/usr | |
make | |
} | |
package() { | |
cd "$srcdir/$_realname" | |
make DESTDIR=${pkgdir} install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment