diff options
author | xantares | 2015-06-08 23:28:17 +0200 |
---|---|---|
committer | xantares | 2015-06-08 23:28:17 +0200 |
commit | d2b4f9fe7b7b18951b334fe35ba36a7bca9fac13 (patch) | |
tree | 815ddabe580e5f782e7eafa5379aaef982f2988b | |
download | aur-d2b4f9fe7b7b18951b334fe35ba36a7bca9fac13.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..43ca35055865 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = psp-newlib + pkgdesc = Newlib is a C library intended for use on embedded systems (psp) + pkgver = 1.20.0 + pkgrel = 1 + url = http://sourceware.org/newlib/ + arch = any + groups = psp + license = GPL + makedepends = psp-gcc-base + makedepends = psp-binutils + makedepends = psp-sdk-base + options = !buildflags + options = !strip + options = staticlibs + source = ftp://sourceware.org/pub/newlib/newlib-1.20.0.tar.gz + md5sums = e5488f545c46287d360e68a801d470e8 + +pkgname = psp-newlib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4234a5f5f7d8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ + +pkgname=psp-newlib +pkgver=1.20.0 +pkgrel=1 +pkgdesc="Newlib is a C library intended for use on embedded systems (psp)" +arch=(any) +url="http://sourceware.org/newlib/" +license=('GPL') +groups=('psp') +makedepends=('psp-gcc-base' 'psp-binutils' 'psp-sdk-base') +options=('!buildflags' '!strip' 'staticlibs') +source=("ftp://sourceware.org/pub/newlib/newlib-$pkgver.tar.gz") +md5sums=('e5488f545c46287d360e68a801d470e8') + +prepare () +{ + cd "$srcdir/newlib-$pkgver" + rm -rf newlib/libc/sys/psp/ + wget -c https://raw.githubusercontent.com/pspdev/psptoolchain/master/patches/newlib-$pkgver-PSP.patch + patch -p1 -i newlib-$pkgver-PSP.patch +} + +build() +{ + cd "$srcdir/newlib-$pkgver" + mkdir -p build-psp && pushd build-psp + ../configure --prefix=/usr --target=psp --enable-newlib-iconv --enable-newlib-multithread --enable-newlib-mb + make +} + +package() +{ + cd "$srcdir/newlib-$pkgver/build-psp" + make install DESTDIR="$pkgdir" + rm -r "$pkgdir"/usr/share +} + |