From baef4b9a930a9ba477450302bcb73e558bbe25c5 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 26 Nov 2023 12:31:28 +0100 Subject: [PATCH] feat(pkg): add yarn-berry --- .woodpecker.yml | 2 +- yarn-berry/.SRCINFO | 15 +++++++++++++++ yarn-berry/PKGBUILD | 26 ++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 yarn-berry/.SRCINFO create mode 100644 yarn-berry/PKGBUILD diff --git a/.woodpecker.yml b/.woodpecker.yml index d6be45f..d5dae1c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,4 +1,4 @@ -pipeline: +steps: build: image: archlinux:base-devel pull: true diff --git a/yarn-berry/.SRCINFO b/yarn-berry/.SRCINFO new file mode 100644 index 0000000..b86a2d5 --- /dev/null +++ b/yarn-berry/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = yarn-berry + pkgdesc = Fast, reliable, and secure dependency management - Active development trunk + pkgver = 4.0.2 + pkgrel = 1 + url = https://yarnpkg.com/ + arch = any + license = BSD + makedepends = yarn + depends = nodejs + provides = yarn + conflicts = yarn + source = https://github.com/yarnpkg/berry/archive/refs/tags/@yarnpkg/cli/4.0.2.tar.gz + sha256sums = 9d91a09048f4a714ef8f947f108ea177c6e3c8179ea5e8af996dd106fa2cb35e + +pkgname = yarn-berry diff --git a/yarn-berry/PKGBUILD b/yarn-berry/PKGBUILD new file mode 100644 index 0000000..69c004f --- /dev/null +++ b/yarn-berry/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Ícar N. S. + +pkgname=yarn-berry +pkgver=4.0.2 +pkgrel=1 +pkgdesc='Fast, reliable, and secure dependency management - Active development trunk' +arch=(any) +provides=('yarn') +conflicts=('yarn') +url='https://yarnpkg.com/' +license=('BSD') +depends=('nodejs') +makedepends=('yarn') +source=("https://github.com/yarnpkg/berry/archive/refs/tags/@yarnpkg/cli/$pkgver.tar.gz") +sha256sums=('9d91a09048f4a714ef8f947f108ea177c6e3c8179ea5e8af996dd106fa2cb35e') + +prepare() { + cd berry--yarnpkg-cli-${pkgver} + yarn build:cli +} + +package() { + cd berry--yarnpkg-cli-${pkgver} + + install -Dm755 packages/yarnpkg-cli/bundles/yarn.js "$pkgdir/usr/bin/yarn" +}