summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c37f83d4ffe2b294bba4c46d67ab6f41817c41b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=readline-git
pkgver=8.2.r1.g7274faa
pkgrel=2
pkgdesc="GNU readline library"
arch=('i686' 'x86_64')
url="https://tiswww.case.edu/php/chet/readline/rltop.html"
license=('GPL')
depends=('glibc' 'libncursesw.so' 'ncurses')
makedepends=('git')
provides=("readline=$pkgver" 'libhistory.so' 'libreadline.so')
conflicts=('readline')
options=('!emptydirs' 'staticlibs')
source=("git+https://git.savannah.gnu.org/git/readline.git"
        "inputrc::https://gitlab.archlinux.org/archlinux/packaging/packages/readline/-/raw/main/inputrc")
sha256sums=('SKIP'
            'SKIP')


pkgver() {
  cd "readline"

  git describe --long --tags | sed 's/^readline-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "readline"

  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "readline"

  make DESTDIR="$pkgdir" install

  install -Dm644 "$srcdir/inputrc" -t "$pkgdir/etc"
}