summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiretza2020-09-04 15:33:24 +0200
committerXiretza2020-09-05 15:28:45 +0200
commit3435c42bc33d09c5d5791b175fd3fb4c28deed6d (patch)
tree35eef2a4b7afe310dbf7b2f6d4ccffc8d93537db
parent37a0a6d5afad79af1d78828dcecf28c94851f9c4 (diff)
downloadaur-3435c42bc33d09c5d5791b175fd3fb4c28deed6d.tar.gz
Update to 1.4.6
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD44
2 files changed, 24 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e63ad0c2ac6..e6d16f74657 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
pkgbase = riscv64-unknown-elf-picolibc
pkgdesc = Fork of newlib with stdio bits from avrlibc
- pkgver = 1.0.55
+ pkgver = 1.4.6
pkgrel = 1
- url = https://github.com/keith-packard/picolibc
+ url = https://github.com/picolibc/picolibc
arch = i686
arch = x86_64
license = BSD
- makedepends = git
+ makedepends = riscv64-unknown-elf-gcc
makedepends = meson
- depends = riscv64-unknown-elf-gcc
+ conflicts = riscv64-unknown-elf-newlib
options = !strip
- source = git+https://github.com/keith-packard/picolibc.git
- sha1sums = SKIP
+ options = !buildflags
+ source = picolibc-1.4.6.tar.gz::https://github.com/picolibc/picolibc/archive/1.4.6.tar.gz
+ sha256sums = 00764d0c0a2e8685fd9c91685ee8c404ef935975eaa07a55b15243558d390a00
pkgname = riscv64-unknown-elf-picolibc
diff --git a/PKGBUILD b/PKGBUILD
index 3d2cd828d68..4cd3a2eff91 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,33 @@
-# Maintainer: Emil Renner Berthing <aur@esmil.dk>
+# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
+# Contributor: Emil Renner Berthing <aur@esmil.dk>
_target=riscv64-unknown-elf
pkgname=$_target-picolibc
-pkgver=1.0.55
+pkgver=1.4.6
pkgrel=1
pkgdesc='Fork of newlib with stdio bits from avrlibc'
+conflicts=("$_target-newlib")
arch=('i686' 'x86_64')
-url='https://github.com/keith-packard/picolibc'
+url='https://github.com/picolibc/picolibc'
license=('BSD')
-depends=("$_target-gcc")
-makedepends=('git' 'meson')
-source=('git+https://github.com/keith-packard/picolibc.git')
-sha1sums=('SKIP')
-options=(!strip)
-
-pkgver() {
- cd "$srcdir/picolibc"
- local ver="$(git describe --tags)"
- ver="${ver%-*}"
- ver="${ver#v}"
- echo "${ver/-/.}"
-}
+makedepends=("$_target-gcc" 'meson')
+source=("picolibc-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('00764d0c0a2e8685fd9c91685ee8c404ef935975eaa07a55b15243558d390a00')
+options=(!strip !buildflags)
build() {
- mkdir build
- cd build
+ meson \
+ --prefix="/usr/$_target" \
+ --buildtype=plain \
+ --cross-file "picolibc-$pkgver/cross-${_target}.txt" \
+ "picolibc-$pkgver" build
- meson ../picolibc \
- -Dincludedir=picolibc/$_target/include \
- -Dlibdir=picolibc/$_target/lib \
- --cross-file ../picolibc/cross-${_target}.txt
-
- ninja
+ meson compile -C build
}
package() {
- cd build
-
- DESTDIR="$pkgdir" ninja install
+ DESTDIR="$pkgdir" meson install -C build
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$srcdir/picolibc-$pkgver/COPYING."{GPL2,NEWLIB,picolibc}
}
# vim: set ts=2 sw=2 et: