mirror of
https://git.freebsd.org/ports.git
synced 2025-05-07 19:30:46 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
26 lines
871 B
Bash
26 lines
871 B
Bash
#! /bin/sh
|
|
|
|
PATH=/bin:/usr/bin:/usr/local/bin
|
|
|
|
GIT_CMD="git"
|
|
PATCH_CMD="${GIT_CMD} apply"
|
|
#PATCH_FLAGS="--numstat --check" # for debugging
|
|
PATCH_FLAGS="--verbose --reject"
|
|
|
|
WRKSRC=$1
|
|
PATCH_CONF=${WRKSRC}/electron/patches/config.json
|
|
|
|
${GIT_CMD} status "${WRKSRC}" > /dev/null 2>&1 && IS_GIT_REPO=1
|
|
|
|
PATCHD_REPOD_PAIRS=$(jq -r '.[] | .patch_dir + ":" + .repo' "${PATCH_CONF}")
|
|
for prp in ${PATCHD_REPOD_PAIRS}; do
|
|
pd=$(echo "${prp}" | awk -F: '{print $1}' | sed -e 's/src/./')
|
|
rd=$(echo "${prp}" | awk -F: '{print $2}' | sed -e 's/src/./')
|
|
(cd "${WRKSRC}/${rd}" && \
|
|
if [ -n "${IS_GIT_REPO}" ]; then
|
|
PATCH_FLAGS="${PATCH_FLAGS} --directory=$(${GIT_CMD} rev-parse --show-prefix)"
|
|
fi && \
|
|
while read -r p; do
|
|
${PATCH_CMD} ${PATCH_FLAGS} "${WRKSRC}/${pd}/${p}"
|
|
done < "${WRKSRC}/${pd}/.patches")
|
|
done
|