67 lines
2.3 KiB
Bash
67 lines
2.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=readline
|
|
_basever=8.1
|
|
_patchlevel=002
|
|
pkgver=${_basever}.${_patchlevel}
|
|
pkgrel=01
|
|
pkgdesc='GNU readline library'
|
|
arch=('x86_64')
|
|
url='https://tiswww.case.edu/php/chet/readline/rltop.html'
|
|
backup=('etc/inputrc')
|
|
depends=('glibc' 'ncurses' 'libncursesw.so')
|
|
provides=('libhistory.so' 'libreadline.so')
|
|
#options=('!emptydirs' 'debug')
|
|
options=('!emptydirs')
|
|
source=(https://ftp.gnu.org/gnu/readline/readline-$_basever.tar.gz{,.sig}
|
|
inputrc)
|
|
|
|
if [ $_patchlevel -gt 0 ]; then
|
|
for (( _p=1; _p <= $((10#${_patchlevel})); _p++ )); do
|
|
source=(${source[@]} https://ftp.gnu.org/gnu/readline/readline-$_basever-patches/readline${_basever//.}-$(printf "%03d" $_p){,.sig})
|
|
done
|
|
fi
|
|
|
|
prepare() {
|
|
cd $pkgname-$_basever
|
|
for (( _p=1; _p <= $((10#${_patchlevel})); _p++ )); do
|
|
msg "applying patch readline${_basever//.}-$(printf "%03d" $_p)"
|
|
patch -p0 -i ../readline${_basever//.}-$(printf "%03d" $_p)
|
|
done
|
|
|
|
# remove RPATH from shared objects (FS#14366)
|
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$_basever
|
|
|
|
# build with -fPIC for x86_64 (FS#15634)
|
|
[[ $CARCH == "x86_64" ]] && CFLAGS="$CFLAGS -fPIC"
|
|
|
|
./configure --prefix=/usr
|
|
make SHLIB_LIBS=-lncurses
|
|
}
|
|
|
|
package() {
|
|
make -C $pkgname-$_basever DESTDIR="$pkgdir" install
|
|
install -Dm644 inputrc "$pkgdir"/etc/inputrc
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL')
|
|
|
|
validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
|
|
|
|
sha256sums=(f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02 # readline-8.1.tar.gz
|
|
9f3c9c4bfb023e633465f31ec9a4ba818136226ac4c0a7eb0b8734fee15a0513 # readline-8.1.tar.gz.sig
|
|
36e9611f935ee108d161587b0615f9c390192ef4bbff6dc59b58671261029901 # inputrc
|
|
682a465a68633650565c43d59f0b8cdf149c13a874682d3c20cb4af6709b9144 # readline81-001
|
|
532a945a959ecd29f62cdf0d787652c9fc03cb8083a41b264e28cf038a3f367d # readline81-001.sig
|
|
e55be055a68cb0719b0ccb5edc9a74edcc1d1f689e8a501525b3bc5ebad325dc # readline81-002
|
|
1a27045713021d2f328e13ec40ec136e2583505b13c72914aca0da3aec7f6acf) # readline81-002.sig
|