summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f9269f41789e189711c2e7e1d01fee6d48f0dc0 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Jan Fader <jan.fader@web.de>
# Maintainer: Michael Beaumont <mjboamail@gmail.com>

# Upstream package at https://github.com/michaelbeaumont/aur-packages
# More info at https://github.com/michaelbeaumont/fish-shell/issues/1

pkgname=fish-smart-prompt-truncate
_pkgname=fish
pkgver=3.7.0
pkgrel=1
pkgdesc='Fork of fish that allows non-final prompt lines to be reflowed by the terminal instead of truncated.'
url='https://fishshell.com/'
arch=('x86_64')
license=('GPL2')
depends=('glibc' 'gcc-libs' 'ncurses' 'pcre2')
optdepends=('python: man page completion parser / web config tool'
            'pkgfile: command-not-found hook')
makedepends=('cmake' 'python-sphinx')
checkdepends=('expect' 'procps-ng')
install=fish.install
backup=(etc/fish/config.fish)
conflicts=(fish)
source=(
  https://github.com/fish-shell/fish-shell/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.xz{,.asc}
  only-truncate-final-line.patch
)
validpgpkeys=(003837986104878835FA516D7A67D962D88A709A) # David Adam <zanchey@gmail.com>
sha256sums=('df1b7378b714f0690b285ed9e4e58afe270ac98dbc9ca5839589c1afcca33ab1'
            'SKIP'
            'SKIP')

build() {
  cd "${_pkgname}-${pkgver}"
  patch --forward --strip=1 --input="${srcdir}/only-truncate-final-line.patch"

  export CXXFLAGS+=" ${CPPFLAGS}"
  cmake \
    -B build \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
    -DCMAKE_BUILD_TYPE=None \
    -DBUILD_DOCS=True \
    -Wno-dev
  make -C build VERBOSE=1
}

check() {
  cd ${_pkgname}-${pkgver}
  make -C build test
}

package() {
  cd ${_pkgname}-${pkgver}
  make -C build DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: