summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTilmann Meyer2020-03-18 15:30:23 +0100
committerTilmann Meyer2020-03-18 15:30:23 +0100
commit985fac887ff64b6590b161bf6618a87cdb64402e (patch)
treedc819ab0d572fac6e255a641c3ff76613e22f321
downloadaur-985fac887ff64b6590b161bf6618a87cdb64402e.tar.gz
addpkg: aarch64-linux-gnu-readline
-rw-r--r--.SRCINFO35
-rw-r--r--PKGBUILD81
2 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7e488443891
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,35 @@
+pkgbase = aarch64-linux-gnu-readline
+ pkgdesc = GNU readline library
+ pkgver = 8.0.004
+ pkgrel = 1
+ url = https://tiswww.case.edu/php/chet/readline/rltop.html
+ arch = x86_64
+ license = GPL
+ makedepends = aarch64-linux-gnu-configure
+ depends = aarch64-linux-gnu-glibc
+ depends = aarch64-linux-gnu-ncurses
+ options = !buildflags
+ source = https://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz
+ source = https://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz.sig
+ source = readline8.0-1.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-001
+ source = readline8.0-1.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-001.sig
+ source = readline8.0-2.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-002
+ source = readline8.0-2.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-002.sig
+ source = readline8.0-3.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-003
+ source = readline8.0-3.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-003.sig
+ source = readline8.0-4.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-004
+ source = readline8.0-4.patch::https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-004.sig
+ validpgpkeys = 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
+ sha256sums = e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
+ sha256sums = SKIP
+ sha256sums = d8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069
+ sha256sums = SKIP
+ sha256sums = 36b0febff1e560091ae7476026921f31b6d1dd4c918dcb7b741aa2dad1aec8f7
+ sha256sums = SKIP
+ sha256sums = 94ddb2210b71eb5389c7756865d60e343666dfb722c85892f8226b26bb3eeaef
+ sha256sums = SKIP
+ sha256sums = b1aa3d2a40eee2dea9708229740742e649c32bb8db13535ea78f8ac15377394c
+ sha256sums = SKIP
+
+pkgname = aarch64-linux-gnu-readline
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..98bee83cdfb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer: Tilmann Meyer <tilmann.meyer@gmx.net>
+
+_target=aarch64-linux-gnu
+
+_pkgname=readline
+pkgname=$_target-$_pkgname
+_basever=8.0
+_patchlevel=004
+pkgver=$_basever.$_patchlevel
+pkgrel=1
+pkgdesc='GNU readline library'
+arch=(x86_64)
+url='https://tiswww.case.edu/php/chet/readline/rltop.html'
+license=(GPL)
+depends=($_target-glibc $_target-ncurses)
+makedepends=($_target-configure)
+options=(!buildflags)
+source=(
+ https://ftp.gnu.org/gnu/readline/readline-$_basever.tar.gz{,.sig}
+)
+
+if [ ${_patchlevel} -gt 00 ]; then
+ for ((_p = 1; _p <= $((10#${_patchlevel})); _p++)); do
+ source+=("readline${_basever}-${_p}.patch::https://ftp.gnu.org/gnu/readline/readline-${_basever}-patches/readline${_basever//./}-$(printf "%03d" ${_p})"{,.sig})
+ done
+fi
+
+sha256sums=(
+ 'e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461'
+ 'SKIP'
+ 'd8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069'
+ 'SKIP'
+ '36b0febff1e560091ae7476026921f31b6d1dd4c918dcb7b741aa2dad1aec8f7'
+ 'SKIP'
+ '94ddb2210b71eb5389c7756865d60e343666dfb722c85892f8226b26bb3eeaef'
+ 'SKIP'
+ 'b1aa3d2a40eee2dea9708229740742e649c32bb8db13535ea78f8ac15377394c'
+ 'SKIP'
+)
+validpgpkeys=(
+ 7C0135FB088AAF6C66C650B9BB5869F064EA74AB # Chet Ramey <chet@cwru.edu>
+)
+
+_srcdir=$_pkgname-$_basever
+
+strip() {
+ ${_target}-strip "$@"
+}
+
+objcopy() {
+ ${_target}-objcopy "$@"
+}
+
+prepare() {
+ cd $_srcdir
+
+ for patch in "$srcdir/"*.patch; do
+ msg2 "Applying patch $patch"
+ patch -Np0 -s -i "$patch"
+ done
+
+ # Remove RPATH from shared objects (FS#14366)
+ sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
+}
+
+build() {
+ cd $_srcdir
+
+ mkdir -p build-$_target && pushd build-$_target
+ $_target-configure
+ make SHLIB_LIBS=-lncurses
+ popd
+}
+
+package() {
+ cd $_srcdir
+
+ pushd build-$_target
+ make DESTDIR="$pkgdir" install
+ popd
+}