From d1f6a35ec4e445623cb6e80d9f000744d7278d9f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 17 May 2021 22:36:50 +0200 Subject: h2o: ruby -> ruby2.7 --- h2o/PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'h2o') diff --git a/h2o/PKGBUILD b/h2o/PKGBUILD index a656826b7..201428532 100644 --- a/h2o/PKGBUILD +++ b/h2o/PKGBUILD @@ -16,7 +16,7 @@ _pinned_dependencies=( 'zlib=1:1.2.11' ) depends=('libuv' 'libyaml' 'wslay' "${_pinned_dependencies[@]}") -makedepends=('cmake' 'libtool' 'make' 'pkg-config' 'ruby') +makedepends=('cmake' 'libtool' 'make' 'pkg-config' 'ruby2.7') url="https://github.com/h2o/h2o" license=('MIT') source=("$pkgname-$pkgver.tar.gz::https://github.com/h2o/$pkgname/archive/v$pkgver.tar.gz" @@ -27,6 +27,11 @@ backup=('etc/h2o.conf') provides=('h2o' 'libh2o') conflicts=('libh2o') +prepare() { + export PATH="$srcdir:$PATH" + ln -s /usr/bin/ruby-2.7 "$srcdir/ruby" +} + build() { cd "$srcdir/$pkgname-$pkgver" -- cgit v1.2.3-70-g09d2