Moved to slp format
This commit is contained in:
16
Makefile
16
Makefile
@@ -17,16 +17,16 @@ REPO = main
|
||||
BRIEF = Berkeley DB database libraries
|
||||
DESC = Berkeley DB is a family of embedded key-value database libraries \
|
||||
providing scalable high-performance data management services to applications.
|
||||
SNAPVER = 2
|
||||
SLVER = 3
|
||||
|
||||
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)
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
DEV := $(PWD)/$(PACKAGE)-dev
|
||||
DEVROOT := $(DEV)/ROOT
|
||||
@@ -74,9 +74,9 @@ $(ROOT): $(SRCDIR)/build_unix/db_verify.o
|
||||
|
||||
@cd $(SRCDIR)/build_unix && make docdir=/usr/share/doc/$(PACKAGE) \
|
||||
install DESTDIR=$(ROOT) && \
|
||||
install -v -d $(DEV)/SNAP && \
|
||||
install -v -d $(DEV)/SL && \
|
||||
install -v -d $(DEVROOT) && \
|
||||
install -v -d $(DOC)/SNAP && \
|
||||
install -v -d $(DOC)/SL && \
|
||||
install -v -d -m 0755 $(DOCROOT)/usr/share && \
|
||||
for file in `find $(ROOT)| \
|
||||
egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$|\.la$$|\.m4$$|\.pc$$'`; do \
|
||||
@@ -86,14 +86,14 @@ $(ROOT): $(SRCDIR)/build_unix/db_verify.o
|
||||
done
|
||||
@mv -v $(ROOT)/usr/share/doc $(DOCROOT)/usr/share/doc && \
|
||||
find $(ROOT) -type d -empty -delete && \
|
||||
cd $(DEV) && make -f ../Makefile.$(PACKAGE)-dev && mv *.snap ../ && \
|
||||
cd $(DOC) && make -f ../Makefile.$(PACKAGE)-doc && mv *.snap ../
|
||||
cd $(DEV) && make -f ../Makefile.$(PACKAGE)-dev && mv *.slp ../ && \
|
||||
cd $(DOC) && make -f ../Makefile.$(PACKAGE)-doc && mv *.slp ../
|
||||
|
||||
clean:
|
||||
@rm -rvf $(ROOT) \
|
||||
$(DEV) \
|
||||
$(DOC) \
|
||||
$(SNAPINFO) \
|
||||
$(SLINFO) \
|
||||
$(MANIFEST) \
|
||||
$(FILES) \
|
||||
$(SRCDIR)
|
||||
|
||||
@@ -13,4 +13,4 @@ REPO = dev
|
||||
BRIEF = Development files for db
|
||||
DESC = Development files for db
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
@@ -13,4 +13,4 @@ REPO = dev
|
||||
BRIEF = Documentation for db
|
||||
DESC = Documentation for db
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
Reference in New Issue
Block a user