1 Commits

Author SHA1 Message Date
Jay Larson
f2e81089c2 Moved to new slp format 2020-08-16 17:21:48 -05:00
4 changed files with 10 additions and 10 deletions

View File

@@ -15,33 +15,33 @@ export URL = http://savannah.nongnu.org/projects/attr
REPO = main
BRIEF = Filesystem extended attributes utilities
DESC = Commands for Manipulating Filesystem Extended Attributes
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)/libattr-dev
DEVROOT := $(DEV)/ROOT
LIB := $(PWD)/libattr
LIBROOT := $(LIB)/ROOT
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux
$(LIBROOT): $(DEVROOT)
@install -v -d $(LIB)/SNAP $(LIBROOT) && \
@install -v -d $(LIB)/SL $(LIBROOT) && \
cd $(SRCDIR) && make install-lib DESTDIR=$(LIBROOT) && \
rm -vrf $(LIBROOT)/bin $(LIBROOT)/usr/share/locale \
$(LIBROOT)/usr/share/man && \
cd $(LIB) && make -f ../Makefile.libattr && mv *.snap ../
cd $(LIB) && make -f ../Makefile.libattr && mv *.slp ../
$(DEVROOT): $(ROOT)
@install -v -d $(DEV)/SNAP $(DEVROOT) && \
@install -v -d $(DEV)/SL $(DEVROOT) && \
cd $(SRCDIR) && make install-dev DESTDIR=$(DEVROOT) && \
cd $(DEV) && make -f ../Makefile.libattr-dev && mv *.snap ../
cd $(DEV) && make -f ../Makefile.libattr-dev && mv *.slp ../
$(SRCDIR): $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -91,7 +91,7 @@ clean:
@rm -rvf $(ROOT) \
$(DEV) \
$(LIB) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)

View File

@@ -13,4 +13,4 @@ REPO = core
BRIEF = Access control list shared library
DESC = Shared library for manipulating POSIX Access Control Lists
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux

View File

@@ -13,4 +13,4 @@ REPO = dev
BRIEF = Access control list shared library
DESC = Shared library for manipulating POSIX Access Control Lists
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux