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
|
REPO = main
|
||||||
BRIEF = Filesystem extended attributes utilities
|
BRIEF = Filesystem extended attributes utilities
|
||||||
DESC = Commands for Manipulating Filesystem Extended Attributes
|
DESC = Commands for Manipulating Filesystem Extended Attributes
|
||||||
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)/libattr-dev
|
DEV := $(PWD)/libattr-dev
|
||||||
DEVROOT := $(DEV)/ROOT
|
DEVROOT := $(DEV)/ROOT
|
||||||
LIB := $(PWD)/libattr
|
LIB := $(PWD)/libattr
|
||||||
LIBROOT := $(LIB)/ROOT
|
LIBROOT := $(LIB)/ROOT
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|
||||||
$(LIBROOT): $(DEVROOT)
|
$(LIBROOT): $(DEVROOT)
|
||||||
@install -v -d $(LIB)/SNAP $(LIBROOT) && \
|
@install -v -d $(LIB)/SL $(LIBROOT) && \
|
||||||
cd $(SRCDIR) && make install-lib DESTDIR=$(LIBROOT) && \
|
cd $(SRCDIR) && make install-lib DESTDIR=$(LIBROOT) && \
|
||||||
rm -vrf $(LIBROOT)/bin $(LIBROOT)/usr/share/locale \
|
rm -vrf $(LIBROOT)/bin $(LIBROOT)/usr/share/locale \
|
||||||
$(LIBROOT)/usr/share/man && \
|
$(LIBROOT)/usr/share/man && \
|
||||||
cd $(LIB) && make -f ../Makefile.libattr && mv *.snap ../
|
cd $(LIB) && make -f ../Makefile.libattr && mv *.slp ../
|
||||||
|
|
||||||
$(DEVROOT): $(ROOT)
|
$(DEVROOT): $(ROOT)
|
||||||
@install -v -d $(DEV)/SNAP $(DEVROOT) && \
|
@install -v -d $(DEV)/SL $(DEVROOT) && \
|
||||||
cd $(SRCDIR) && make install-dev DESTDIR=$(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)
|
$(SRCDIR): $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -91,7 +91,7 @@ clean:
|
|||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DEV) \
|
$(DEV) \
|
||||||
$(LIB) \
|
$(LIB) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ REPO = core
|
|||||||
BRIEF = Access control list shared library
|
BRIEF = Access control list shared library
|
||||||
DESC = Shared library for manipulating POSIX Access Control Lists
|
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
|
BRIEF = Access control list shared library
|
||||||
DESC = Shared library for manipulating POSIX Access Control Lists
|
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