3 Commits

Author SHA1 Message Date
Jay Larson
a5d556e963 Moved to slp format 2020-08-21 13:55:05 -05:00
Jay Larson
e6c194543a Rebuilt with new Makefile.snaplinux - removed lib64 links 2017-04-24 13:50:11 -05:00
Jay Larson
b46310c9f0 Rebuilt with new Makefile.snaplinux which uses links for /lib64 and /usr/lib64 2017-04-19 10:56:06 -05:00
3 changed files with 9 additions and 7 deletions

View File

@@ -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 = 2 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)

View File

@@ -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