Commit 21da2aa4 authored by Leo's avatar Leo
Browse files

main/fish: switch to python3

parent 4e9113f6
Pipeline #1443 passed with stages
in 3 minutes and 54 seconds
......@@ -2,7 +2,7 @@
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=fish
pkgver=3.0.2
pkgrel=4
pkgrel=5
pkgdesc="Modern interactive commandline shell"
url="http://www.fishshell.com"
arch="all"
......@@ -13,7 +13,15 @@ makedepends="doxygen ncurses-dev ncurses pcre2-dev"
checkdepends="expect bash"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools::noarch"
source="https://github.com/fish-shell/fish-shell/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
source="https://github.com/fish-shell/fish-shell/releases/download/$pkgver/fish-$pkgver.tar.gz"
prepare() {
default_prepare
cd "$builddir"
for f in $(find share/tools -type f -name '*.py'); do
sed -i -e '1{s@^#!.*@#!%{__python3}@}' "$f"
done
}
build() {
cd "$builddir"
......@@ -64,7 +72,7 @@ doc() {
tools() {
pkgdesc="$pkgdesc (tools)"
depends="$pkgname python cmd:man"
depends="$pkgname python3 cmd:man"
mkdir -p "$subpkgdir"/usr/share/$pkgname
mv "$pkgdir"/usr/share/$pkgname/tools "$subpkgdir"/usr/share/$pkgname
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment