Merge PKGBUILD from official repository
This commit is contained in:
7
.SRCINFO
7
.SRCINFO
@@ -1,6 +1,6 @@
|
|||||||
pkgbase = fish-git
|
pkgbase = fish-git
|
||||||
pkgdesc = User friendly shell intended mostly for interactive use.
|
pkgdesc = User friendly shell intended mostly for interactive use.
|
||||||
pkgver = 4.0b1.r101.gd5efef1cc
|
pkgver = 4.0.1.r535.ge8bd45d76
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
epoch = 2
|
epoch = 2
|
||||||
url = https://github.com/fish-shell/fish-shell
|
url = https://github.com/fish-shell/fish-shell
|
||||||
@@ -22,6 +22,11 @@ pkgbase = fish-git
|
|||||||
depends = pcre2
|
depends = pcre2
|
||||||
optdepends = python: man page completion parser / web config tool
|
optdepends = python: man page completion parser / web config tool
|
||||||
optdepends = pkgfile: command-not-found hook
|
optdepends = pkgfile: command-not-found hook
|
||||||
|
optdepends = nroff: --help for built-in commmands
|
||||||
|
optdepends = mandoc: --help for built-in commmands (alternative)
|
||||||
|
optdepends = xsel: X11 clipboard integration
|
||||||
|
optdepends = xclip: X11 clipboard integration (alternative)
|
||||||
|
optdepends = wl-clipboard: Wayland clipboard integration
|
||||||
provides = fish
|
provides = fish
|
||||||
provides = fish-shell
|
provides = fish-shell
|
||||||
conflicts = fish
|
conflicts = fish
|
||||||
|
|||||||
40
PKGBUILD
40
PKGBUILD
@@ -1,13 +1,16 @@
|
|||||||
|
# Maintainer: Akatsuki Rui <aur@akii.work>
|
||||||
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
|
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
|
||||||
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
||||||
# Contributor: Eric Belanger <eric@archlinux.org>
|
# Contributor: Eric Belanger <eric@archlinux.org>
|
||||||
# Contributor: Jan Fader <jan.fader@web.de>
|
# Contributor: Jan Fader <jan.fader@web.de>
|
||||||
|
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
|
||||||
|
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||||
|
# Contributor: SanskritFritz (gmail)
|
||||||
# Contributor: Stephen Drodge <stephen.drodge@gmail.com>
|
# Contributor: Stephen Drodge <stephen.drodge@gmail.com>
|
||||||
# Contributor: Akatsuki Rui <aur@akii.work>
|
|
||||||
# Maintainer: SanskritFritz (gmail)
|
|
||||||
|
|
||||||
pkgname=fish-git
|
pkgname=fish-git
|
||||||
_gitname="fish-shell"
|
_gitname="fish-shell"
|
||||||
pkgver=4.0b1.r101.gd5efef1cc
|
pkgver=4.0.1.r535.ge8bd45d76
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=2
|
epoch=2
|
||||||
pkgdesc="User friendly shell intended mostly for interactive use."
|
pkgdesc="User friendly shell intended mostly for interactive use."
|
||||||
@@ -23,6 +26,12 @@ depends=(
|
|||||||
optdepends=(
|
optdepends=(
|
||||||
'python: man page completion parser / web config tool'
|
'python: man page completion parser / web config tool'
|
||||||
'pkgfile: command-not-found hook'
|
'pkgfile: command-not-found hook'
|
||||||
|
'nroff: --help for built-in commmands'
|
||||||
|
'mandoc: --help for built-in commmands (alternative)'
|
||||||
|
'xsel: X11 clipboard integration'
|
||||||
|
'xclip: X11 clipboard integration (alternative)'
|
||||||
|
'wl-clipboard: Wayland clipboard integration'
|
||||||
|
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
'cargo'
|
'cargo'
|
||||||
@@ -58,23 +67,30 @@ pkgver() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_gitname"
|
cd "$_gitname"
|
||||||
|
|
||||||
export CXXFLAGS+=" ${CPPFLAGS}"
|
export CXXFLAGS+=" ${CPPFLAGS}"
|
||||||
cmake \
|
|
||||||
-B build \
|
local cmake_options=(
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-B build
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc
|
||||||
-DBUILD_DOCS=True \
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
|
-DBUILD_DOCS=True
|
||||||
|
-DFISH_USE_SYSTEM_PCRE2=ON
|
||||||
|
-DWITH_GETTEXT=ON
|
||||||
-Wno-dev
|
-Wno-dev
|
||||||
make -C build
|
)
|
||||||
|
cmake "${cmake_options[@]}"
|
||||||
|
|
||||||
|
make -C build VERBOSE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$_gitname"
|
cd "$_gitname"
|
||||||
make -C build test
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_gitname"
|
cd "$_gitname"
|
||||||
make -C build DESTDIR="$pkgdir" install
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user