Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06a3f4b58d | ||
|
|
8142fcd3ce |
19
Makefile
19
Makefile
@@ -9,27 +9,26 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
export SRCPKG = ncurses
|
export SRCPKG = ncurses
|
||||||
export DEPENDS = glibc
|
export DEPENDS = dash,glibc
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = https://www.gnu.org/software/ncurses/
|
export URL = https://www.gnu.org/software/ncurses/
|
||||||
|
REPO = core
|
||||||
BRIEF = Library and tools for terminal handling
|
BRIEF = Library and tools for terminal handling
|
||||||
DESC = The Ncurses (new curses) library is a free software emulation of \
|
DESC = The Ncurses (new curses) library is a free software emulation of \
|
||||||
curses in System V Release 4.0, and more.
|
curses in System V Release 4.0, and more.
|
||||||
SNAPVER = 1
|
SLVER = 3
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
PATCHDIR := $(PWD)/SRC/patches
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||||
sed 's/^-//')-$(SNAPVER)
|
sed 's/^-//')-$(SLVER)
|
||||||
|
|
||||||
DEV := $(PWD)/ncurses-dev
|
DEV := $(PWD)/ncurses-dev
|
||||||
DEVROOT := $(DEV)/ROOT
|
DEVROOT := $(DEV)/ROOT
|
||||||
|
|
||||||
MAKE = make
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
MAKEINST = make install
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
|
||||||
|
|
||||||
$(SRCDIR)/configure: $(ARCHIVE)
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -92,7 +91,7 @@ $(ROOT): $(SRCDIR)/objects/cursesmain.o
|
|||||||
ln -sfv libncursesw.a $(ROOT)/usr/lib/libcursesw.a && \
|
ln -sfv libncursesw.a $(ROOT)/usr/lib/libcursesw.a && \
|
||||||
ln -sfv libncurses.a $(ROOT)/usr/lib/libcurses.a
|
ln -sfv libncurses.a $(ROOT)/usr/lib/libcurses.a
|
||||||
|
|
||||||
@install -v -d $(DEV)/SNAP && \
|
@install -v -d $(DEV)/SL && \
|
||||||
install -v -d $(DEVROOT) && \
|
install -v -d $(DEVROOT) && \
|
||||||
install -v -d -m 755 $(DEVROOT)/usr/share/doc/ncurses && \
|
install -v -d -m 755 $(DEVROOT)/usr/share/doc/ncurses && \
|
||||||
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
|
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
|
||||||
@@ -100,14 +99,14 @@ $(ROOT): $(SRCDIR)/objects/cursesmain.o
|
|||||||
mkdir -p $$path; \
|
mkdir -p $$path; \
|
||||||
mv $$file $$path; \
|
mv $$file $$path; \
|
||||||
done && \
|
done && \
|
||||||
cp -v -R $(SRCDIR)/doc/* $(DEVROOT)/usr/share/doc/ncurses
|
cp -v -R $(SRCDIR)/doc/* $(DEVROOT)/usr/share/doc/ncurses && \
|
||||||
find $(ROOT) -type d -empty -delete && \
|
find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(DEV) && make -f ../Makefile.ncurses-dev && mv *.snap ../
|
cd $(DEV) && make -f ../Makefile.ncurses-dev && mv *.slp ../
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DEV) \
|
$(DEV) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = ncurses
|
DEPENDS = ncurses
|
||||||
|
REPO = dev
|
||||||
BRIEF = Development files for ncurses
|
BRIEF = Development files for ncurses
|
||||||
DESC = Development files for ncurses
|
DESC = Development files for ncurses
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user