WIP
Build/Publish XBPS / build-and-publish (push) Failing after 4s
Details
Build/Publish XBPS / build-and-publish (push) Failing after 4s
Details
This commit is contained in:
parent
b345a380cc
commit
7ff36d6210
67
Makefile
67
Makefile
|
@ -1,5 +1,7 @@
|
||||||
# st - simple terminal
|
# st - simple terminal
|
||||||
# See LICENSE file for copyright and license details.
|
# See LICENSE file for copyright and license details.
|
||||||
|
.PHONY: all clean install uninstall
|
||||||
|
|
||||||
.POSIX:
|
.POSIX:
|
||||||
|
|
||||||
include config.mk
|
include config.mk
|
||||||
|
@ -7,41 +9,44 @@ include config.mk
|
||||||
SRC = st.c x.c $(LIGATURES_C) $(SIXEL_C)
|
SRC = st.c x.c $(LIGATURES_C) $(SIXEL_C)
|
||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
|
|
||||||
all: st
|
all: st terminfo
|
||||||
|
|
||||||
config.h:
|
# TODO: Update command to update submodules
|
||||||
cp config.def.h config.h
|
|
||||||
|
|
||||||
patches.h:
|
|
||||||
cp patches.def.h patches.h
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(STCFLAGS) -c $<
|
|
||||||
|
|
||||||
st.o: config.h st.h win.h
|
|
||||||
x.o: arg.h config.h st.h win.h $(LIGATURES_H)
|
|
||||||
|
|
||||||
$(OBJ): config.h config.mk patches.h
|
|
||||||
|
|
||||||
st: $(OBJ)
|
|
||||||
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f st $(OBJ) st-$(VERSION).tar.gz
|
find . -maxdepth 1 -type f | grep -Pv "^\./\.|Makefile$$" | xargs -r rm
|
||||||
|
rm -r tmp patch 2>/dev/null || true
|
||||||
|
git -C st-flexipatch reset --hard HEAD
|
||||||
|
git -C st-flexipatch clean -fdx
|
||||||
|
|
||||||
dist: clean
|
buildroot:
|
||||||
mkdir -p st-$(VERSION)
|
cp config/patches.h st-flexipatch/patches.h
|
||||||
cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
|
flexipatch-finalizer/flexipatch-finalizer.sh -r -d st-flexipatch -o tmp
|
||||||
config.def.h st.info st.1 arg.h st.h win.h $(LIGATURES_H) $(SRC)\
|
rm -r tmp/Makefile
|
||||||
st-$(VERSION)
|
mv tmp/* ./
|
||||||
tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
|
|
||||||
rm -rf st-$(VERSION)
|
|
||||||
|
|
||||||
terminfo:
|
config.mk:
|
||||||
mkdir terminfo
|
cp config/config.mk ./config.mk
|
||||||
|
|
||||||
|
config.h:
|
||||||
|
cp config/config.h ./config.h
|
||||||
|
|
||||||
|
*.h: buildroot
|
||||||
|
.c.o: buildroot
|
||||||
|
$(CC) $(STCFLAGS) -c $<
|
||||||
|
|
||||||
|
st.o: buildroot config.h st.h win.h
|
||||||
|
x.o: buildroot arg.h config.h st.h win.h $(LIGATURES_H)
|
||||||
|
|
||||||
|
$(OBJ): config.h config.mk buildroot
|
||||||
|
|
||||||
|
st: buildroot $(OBJ)
|
||||||
|
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
|
||||||
|
|
||||||
|
terminfo: buildroot
|
||||||
tic -sx -o terminfo st.info
|
tic -sx -o terminfo st.info
|
||||||
|
|
||||||
install: st
|
install: st terminfo
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
cp -f st $(DESTDIR)$(PREFIX)/bin
|
cp -f st $(DESTDIR)$(PREFIX)/bin
|
||||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/st
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/st
|
||||||
|
@ -50,9 +55,11 @@ install: st
|
||||||
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
|
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/share
|
mkdir -p $(DESTDIR)$(PREFIX)/share
|
||||||
cp -a terminfo $(DESTDIR)$(PREFIX)/share/terminfo
|
cp -a terminfo $(DESTDIR)$(PREFIX)/share/terminfo
|
||||||
|
chmod 755 $(DESTDIR)$(PREFIX)/share/terminfo/s
|
||||||
|
chmod 644 $(DESTDIR)$(PREFIX)/share/terminfo/st-*
|
||||||
# mkdir -p $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
|
# mkdir -p $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
|
||||||
# test -f ${DESTDIR}${PREFIX}/share/applications/st.desktop || cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
|
# test -f ${DESTDIR}${PREFIX}/share/applications/st.desktop || cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/st
|
rm -f $(DESTDIR)$(PREFIX)/bin/st
|
||||||
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
|
||||||
|
@ -64,5 +71,3 @@ uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/share/terminfo/s/st-meta
|
rm -f $(DESTDIR)$(PREFIX)/share/terminfo/s/st-meta
|
||||||
rm -f $(DESTDIR)$(PREFIX)/share/terminfo/s/st-meta-256color
|
rm -f $(DESTDIR)$(PREFIX)/share/terminfo/s/st-meta-256color
|
||||||
rm -f $(DESTDIR)$(PREFIX)/share/terminfo/s/st-mono
|
rm -f $(DESTDIR)$(PREFIX)/share/terminfo/s/st-mono
|
||||||
|
|
||||||
.PHONY: all clean dist install uninstall
|
|
||||||
|
|
20
build.sh
20
build.sh
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cp -f config.mk Makefile patches.h st-flexipatch/
|
|
||||||
flexipatch-finalizer/flexipatch-finalizer.sh -r -d st-flexipatch -o st-final
|
|
||||||
git -C st-flexipatch reset --hard HEAD && git -C st-flexipatch clean -fd
|
|
||||||
for patch in patches/*.diff; do
|
|
||||||
patch -d st-final <"$patch"
|
|
||||||
done
|
|
||||||
cp -f config.h st-final/
|
|
||||||
cd st-final || exit 1
|
|
||||||
|
|
||||||
if [ "$1" = "-i" ]; then
|
|
||||||
sudo make install
|
|
||||||
elif [ "$1" = "-ti" ]; then
|
|
||||||
mkdir -p /usr/local/share/terminfo/s/
|
|
||||||
make terminfo
|
|
||||||
cp -a terminfo/s/* /usr/local/share/terminfo/s/
|
|
||||||
else
|
|
||||||
make
|
|
||||||
fi
|
|
Loading…
Reference in New Issue