1 Commits

Author SHA1 Message Date
Jay Larson
a5d556e963 Moved to slp format 2020-08-21 13:55:05 -05:00
3 changed files with 9 additions and 7 deletions

View File

@@ -12,22 +12,23 @@ export SRCPKG = libcap
export DEPENDS = glibc
export ARCH = x86_64
export URL = https://sites.google.com/site/fullycapable/
REPO = core
BRIEF = Library for POSIX.1e functionality
DESC = This is a library for getting and setting POSIX.1e (formerly POSIX 6) \
draft 15 capabilities.
SNAPVER = 4
SLVER = 5
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
PATCHDIR := $(PWD)/SRC/patches
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
sed 's/^-//')-$(SNAPVER)
sed 's/^-//')-$(SLVER)
DEV := $(PWD)/libcap-dev
DEVROOT := $(DEV)/ROOT
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux
$(SRCDIR)/Makefile: $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -61,7 +62,7 @@ $(ROOT): $(SRCDIR)/progs/setcap
@cd $(SRCDIR) && make RAISE_SETFCAP=no prefix=/usr \
install DESTDIR=$(ROOT)
@install -v -d $(DEV)/SNAP && \
@install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
@@ -69,12 +70,12 @@ $(ROOT): $(SRCDIR)/progs/setcap
mv $$file $$path; \
done && \
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:
@rm -rvf $(ROOT) \
$(DEV) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)

View File

@@ -9,7 +9,8 @@
# GNU General Public License for more details.
DEPENDS = libcap
REPO = dev
BRIEF = Development files for libcap
DESC = Development files for libcap
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux