Moved to slp format
This commit is contained in:
13
Makefile
13
Makefile
@@ -12,22 +12,23 @@ export SRCPKG = libcap
|
|||||||
export DEPENDS = glibc
|
export DEPENDS = glibc
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = https://sites.google.com/site/fullycapable/
|
export URL = https://sites.google.com/site/fullycapable/
|
||||||
|
REPO = core
|
||||||
BRIEF = Library for POSIX.1e functionality
|
BRIEF = Library for POSIX.1e functionality
|
||||||
DESC = This is a library for getting and setting POSIX.1e (formerly POSIX 6) \
|
DESC = This is a library for getting and setting POSIX.1e (formerly POSIX 6) \
|
||||||
draft 15 capabilities.
|
draft 15 capabilities.
|
||||||
SNAPVER = 4
|
SLVER = 5
|
||||||
|
|
||||||
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)/libcap-dev
|
DEV := $(PWD)/libcap-dev
|
||||||
DEVROOT := $(DEV)/ROOT
|
DEVROOT := $(DEV)/ROOT
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|
||||||
$(SRCDIR)/Makefile: $(ARCHIVE)
|
$(SRCDIR)/Makefile: $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -61,7 +62,7 @@ $(ROOT): $(SRCDIR)/progs/setcap
|
|||||||
@cd $(SRCDIR) && make RAISE_SETFCAP=no prefix=/usr \
|
@cd $(SRCDIR) && make RAISE_SETFCAP=no prefix=/usr \
|
||||||
install DESTDIR=$(ROOT)
|
install DESTDIR=$(ROOT)
|
||||||
|
|
||||||
@install -v -d $(DEV)/SNAP && \
|
@install -v -d $(DEV)/SL && \
|
||||||
install -v -d $(DEVROOT) && \
|
install -v -d $(DEVROOT) && \
|
||||||
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
|
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
|
||||||
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
||||||
@@ -69,12 +70,12 @@ $(ROOT): $(SRCDIR)/progs/setcap
|
|||||||
mv $$file $$path; \
|
mv $$file $$path; \
|
||||||
done && \
|
done && \
|
||||||
find $(ROOT) -type d -empty -delete && \
|
find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(DEV) && make -f ../Makefile.libcap-dev && mv *.snap ../
|
cd $(DEV) && make -f ../Makefile.libcap-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 = libcap
|
DEPENDS = libcap
|
||||||
|
REPO = dev
|
||||||
BRIEF = Development files for libcap
|
BRIEF = Development files for libcap
|
||||||
DESC = Development files for libcap
|
DESC = Development files for libcap
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user