Moved to new slp format
This commit is contained in:
16
Makefile
16
Makefile
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user