-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathacorn
More file actions
37 lines (27 loc) · 906 Bytes
/
acorn
File metadata and controls
37 lines (27 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
export CFLAGS="-O2 "
export CXXFLAGS="-O2 "
#ARCH_PKG=acorn
#ARCH_VAR=pkgver
PKG_VER=8.16.0
URL=https://registry.npmjs.org/acorn/-/acorn-$PKG_VER.tgz
TAR=$(echo $URL | sed -r 's|(.*)/||')
PACKAGE=acorn
# Get Package
cd /blfs/builds
wget $URL
# Build
# inspired by https://gitlab.archlinux.org/archlinux/packaging/packages/acorn/-/blob/main/PKGBUILD?ref_type=heads
# Install
npm install -g --prefix /pkgs/$PACKAGE/usr /blfs/builds/$TAR
chmod -R u=rwX,go=rX /pkgs/$PACKAGE
cd /pkgs
mkdir -p /pkgs/$PACKAGE/usr/share/licenses/$PACKAGE
ln -s "../../../lib/node_modules/$PACKAGE/LICENSE" "/pkgs/$PACKAGE/usr/share/licenses/$PACKAGE/"
sudo echo "nodejs" > /pkgs/$PACKAGE/depends
sudo echo "" > /pkgs/$PACKAGE/make-depends
sudo echo "$PKG_VER" > /pkgs/$PACKAGE/version
sudo tar -cvapf $PACKAGE.tar.xz $PACKAGE
sudo cp -rp /pkgs/$PACKAGE/* /
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds