2015-01-31 21:24:58 +01:00
|
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
2015-08-31 12:17:55 +02:00
|
|
|
|
# Get package version
|
|
|
|
|
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
|
|
|
|
|
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
|
|
|
|
|
2015-11-03 14:40:29 +01:00
|
|
|
|
# Define temporary debian directory
|
|
|
|
|
TMPDIR = $$(pwd)/debian/yunohost-admin
|
|
|
|
|
|
2015-01-31 21:24:58 +01:00
|
|
|
|
%:
|
|
|
|
|
dh $@
|
2015-08-31 12:17:55 +02:00
|
|
|
|
|
2016-07-23 22:16:47 +02:00
|
|
|
|
override_dh_auto_build:
|
2023-04-04 13:54:41 +02:00
|
|
|
|
/usr/bin/curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
|
2024-03-02 03:46:02 +01:00
|
|
|
|
/usr/bin/curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/yarn.gpg >/dev/null
|
2023-05-12 18:46:33 +02:00
|
|
|
|
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x bookworm main' > /etc/apt/sources.list.d/nodesource.list
|
2024-03-02 03:46:02 +01:00
|
|
|
|
echo "deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
|
2023-04-04 13:54:41 +02:00
|
|
|
|
/usr/bin/apt update
|
2024-03-02 03:46:02 +01:00
|
|
|
|
/usr/bin/apt install nodejs yarn -y
|
|
|
|
|
cd app ; /usr/bin/yarn install --frozen-lockfile --non-interactive
|
|
|
|
|
cd app ; /usr/bin/yarn build
|
2021-08-08 23:08:44 +02:00
|
|
|
|
|
2016-03-04 18:28:20 +01:00
|
|
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
|
dh_clean
|
2020-11-05 13:43:52 +01:00
|
|
|
|
rm -rf app/node_modules
|
|
|
|
|
rm -rf app/dist
|