Skip to content

Commit

Permalink
shuji: add package (#4467)
Browse files Browse the repository at this point in the history
* shuji: add package

* Update to-release

* Update PKGBUILD
  • Loading branch information
D3vil0p3r authored Feb 26, 2025
1 parent ffc4687 commit a65f6b6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shuji
46 changes: 46 additions & 0 deletions packages/shuji/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=shuji
pkgver=v0.8.0.r54.gada0339
pkgrel=1
pkgdesc='Reverse engineering JavaScript and CSS sources from sourcemaps.'
arch=('any')
groups=('blackarch' 'blackarch-decompiler')
url='https://github.com/paazmaya/shuji'
license=('MIT')
depends=('nodejs')
makedepends=('git' 'npm')
source=("git+https://github.com/paazmaya/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}


package() {
cd $pkgname

_npmdir="$pkgdir/usr/lib/node_modules/"

install -dm 755 "$_npmdir"

cd "$_npmdir"

npm install --user root -g --prefix "$pkgdir/usr" "$pkgname@"

cd "$srcdir/$pkgname"

install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md

install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit a65f6b6

Please sign in to comment.