The following changes were made to Makefile:
* added BRIEF * added glibc and ncurses to DEPENDS * moved to new version scheme * moved make and make install out of variables
This commit is contained in:
26
Makefile
26
Makefile
@@ -8,25 +8,19 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS =
|
DEPENDS = glibc,ncurses
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = https://gitlab.com/procps-ng/procps
|
URL = https://gitlab.com/procps-ng/procps
|
||||||
|
BRIEF = Utilities providing process information
|
||||||
DESC = procps is a set of command line and full-screen utilities that provide \
|
DESC = procps is a set of command line and full-screen utilities that provide \
|
||||||
information out of the pseudo-filesystem most commonly located at /proc
|
information out of the pseudo-filesystem most commonly located at /proc
|
||||||
SNAPVER = sr0
|
SNAPVER = 1
|
||||||
|
|
||||||
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
|
||||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER)
|
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
|
||||||
|
|
||||||
MAKE = make
|
|
||||||
MAKEINST = make install
|
|
||||||
SNAPHACKS = install -d -v -m 755 $(ROOT)/lib && \
|
|
||||||
mv -v $(ROOT)/usr/lib/libprocps.so.* $(ROOT)/lib && \
|
|
||||||
ln -sfv ../../lib/$(readlink $(ROOT)/usr/lib/libprocps.so) \
|
|
||||||
$(ROOT)/usr/lib/libprocps.so
|
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
@@ -61,8 +55,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
--target=x86_64-snap-linux-gnu
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
$(SRCDIR)/watch: $(SRCDIR)/config.log
|
$(SRCDIR)/watch: $(SRCDIR)/config.log
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make
|
||||||
$(MAKE)
|
|
||||||
|
|
||||||
$(ROOT): $(SRCDIR)/watch
|
$(ROOT): $(SRCDIR)/watch
|
||||||
@if [ -d $(ROOT) ]; then \
|
@if [ -d $(ROOT) ]; then \
|
||||||
@@ -71,10 +64,11 @@ $(ROOT): $(SRCDIR)/watch
|
|||||||
mkdir -v $(ROOT); \
|
mkdir -v $(ROOT); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||||
$(MAKEINST) DESTDIR=$(ROOT)
|
install -d -v -m 755 $(ROOT)/lib && \
|
||||||
|
mv -v $(ROOT)/usr/lib/libprocps.so.* $(ROOT)/lib && \
|
||||||
@$(SNAPHACKS)
|
ln -sfv ../../lib/$(readlink $(ROOT)/usr/lib/libprocps.so) \
|
||||||
|
$(ROOT)/usr/lib/libprocps.so
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
|
|||||||
Reference in New Issue
Block a user