You are not logged in.

#1 2014-11-13 02:02:49

semeion
Member
From: Brazil
Registered: 2008-10-20
Posts: 75

[Solved] [Request] cctools-port

Hello,

Could be nice if anyone make a PKGBUILD to cctools-port:
https://github.com/tpoechtrager/cctools-port

Have a similar package here but isn´t working:
https://aur.archlinux.org/packages/ios-toolchain/

Thanks in advance.

Last edited by semeion (2014-11-13 19:28:58)

Offline

#2 2014-11-13 02:11:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [Solved] [Request] cctools-port

Have you tried a PKGBUILD for cctools-port?  That looks like it would be very easy - just grab a template for a -git PKGBUILD, and add the commands that README to the build/package functions.

EDIT: this builds, but I have no idea how to test the result as I wouldn't use this.  Also note that I just picked one of the three targets that seemed sensible.  Perhaps it is not actually sensible if this is to build for iPhones ... are those arm?  Perhaps the arm target would be more useful.  There could be a package for each target if this goes to the AUR - or perhaps a split package to build for each target.  Anyhow, here it is (without license info as that was not immediately obvious):

_gitname="cctools-port"
pkgname="${_gitname}-git"
pkgver=41.82defb4
pkgrel=1
pkgdesc="Apple cctools port for Linux, FreeBSD and NetBSD"
url="https://github.com/tpoechtrager/cctools-port"
arch=('x86_64' 'i686')
license=('???') # fix this
depends=('autogen' 'clang' 'openssl')
makedepends=('git')
source=("${_gitname}::git://github.com/tpoechtrager/cctools-port")
sha256sums=('SKIP')

pkgver() {
	cd "${_gitname}"
	echo "$(git rev-list --count HEAD).$(git describe --always )"
}

build() {
	cd "${_gitname}/cctools"
	./autogen.sh
	./configure --prefix=/usr --target=x86_64-apple-darwin11 LDFLAGS=-Wl,--no-as-needed
	make
}

package() {
	cd "${_gitname}/cctools"
	make DESTDIR="${pkgdir}" install
}

EDIT: Found the license.  It's "Apple Public Source License" - I don't know if that is one of the 'common' ones, or if it would have to be entered as custom.  Anyone who wants to submit this to the AUR should look into that.

Last edited by Trilby (2014-11-13 02:28:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-11-13 19:25:58

semeion
Member
From: Brazil
Registered: 2008-10-20
Posts: 75

Re: [Solved] [Request] cctools-port

Your PKGBUILD is working like a charm, it is amazing!

Thank you very much, i was looking for that!

Offline

Board footer

Powered by FluxBB