From ef62ea803b9df106b325c8ec6b184f4564286287 Mon Sep 17 00:00:00 2001 From: Matheus Fillipe Date: Sat, 21 Feb 2026 20:04:58 +0100 Subject: [PATCH] update owner --- .SRCINFO | 4 ++-- PKGBUILD | 13 ++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 8d2831abf6da4..e63f25cc0a032 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -16,8 +16,8 @@ pkgbase = tobby provides = tobby conflicts = tobby-bin options = !strip - noextract = tobby-0.1.0.tgz - source = tobby-0.1.0.tgz::https://registry.npmjs.org/tobby/-/tobby-0.1.0.tgz + noextract = mattfillipe-tobby-0.1.0.tgz + source = mattfillipe-tobby-0.1.0.tgz::https://registry.npmjs.org/@mattfillipe/tobby/-/tobby-0.1.0.tgz sha256sums = SKIP pkgname = tobby diff --git a/PKGBUILD b/PKGBUILD index 9ceb72020cd42..ba259bcea2ff6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: YOUR NAME -_npmname=tobby +_npmname=@mattfillipe/tobby pkgname=tobby pkgver=0.1.0 @@ -15,10 +15,9 @@ makedepends=('npm' 'jq') provides=('tobby') conflicts=('tobby-bin') # Fetch the tarball directly from the npm registry -source=("${_npmname}-${pkgver}.tgz::https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz") -# Prevent makepkg from trying to extract the tarball — npm handles it -noextract=("${_npmname}-${pkgver}.tgz") -# Run `makepkg -g` to get the real hash and replace SKIP +# Scoped packages use %40 for @ in the URL path +source=("mattfillipe-tobby-${pkgver}.tgz::https://registry.npmjs.org/@mattfillipe/tobby/-/tobby-${pkgver}.tgz") +noextract=("mattfillipe-tobby-${pkgver}.tgz") sha256sums=('SKIP') options=('!strip') @@ -26,7 +25,7 @@ package() { npm install -g \ --prefix "${pkgdir}/usr" \ --cache "${srcdir}/npm-cache" \ - "${srcdir}/${_npmname}-${pkgver}.tgz" + "${srcdir}/mattfillipe-tobby-${pkgver}.tgz" # Fix directory permissions (npm sometimes creates 700 dirs) find "${pkgdir}/usr" -type d -exec chmod 755 {} + @@ -34,7 +33,7 @@ package() { # Strip npm-embedded absolute build paths from package.json files find "${pkgdir}" -type f -name package.json -exec sed -i '/_where/d' {} + - local pkgjson="${pkgdir}/usr/lib/node_modules/${_npmname}/package.json" + local pkgjson="${pkgdir}/usr/lib/node_modules/@mattfillipe/tobby/package.json" local tmppackage tmppackage="$(mktemp)" jq '.|=with_entries(select(.key|test("_.+")|not))' \