Moved to slp format

This commit is contained in:
2020-08-27 19:28:38 -05:00
parent 2bd3e645cb
commit 41f258b3f1
3 changed files with 9 additions and 10 deletions

View File

@@ -12,22 +12,23 @@ export SRCPKG = gdbm
export DEPENDS = glibc export DEPENDS = glibc
export ARCH = x86_64 export ARCH = x86_64
export URL = http://www.gnu.org.ua/software/gdbm/ export URL = http://www.gnu.org.ua/software/gdbm/
REPO = core
BRIEF = Library of database functions BRIEF = Library of database functions
DESC = GNU dbm (or GDBM, for short) is a library of database functions that \ DESC = GNU dbm (or GDBM, for short) is a library of database functions that \
use extensible hashing and work similar to the standard UNIX dbm. use extensible hashing and work similar to the standard UNIX dbm.
SNAPVER = 2 SLVER = 3
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)/gdbm-dev DEV := $(PWD)/gdbm-dev
DEVROOT := $(DEV)/ROOT DEVROOT := $(DEV)/ROOT
include /usr/share/snap/Makefile.snaplinux include /usr/share/sl/Makefile.snaplinux
$(SRCDIR)/configure: $(ARCHIVE) $(SRCDIR)/configure: $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -70,7 +71,7 @@ $(ROOT): $(SRCDIR)/src/gdbm_dump
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
rm -v $(ROOT)/usr/share/info/dir rm -v $(ROOT)/usr/share/info/dir
@install -v -d $(DEV)/SNAP && \ @install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \ install -v -d $(DEVROOT) && \
echo "DEV: $(DEV)" && echo "DEVROOT: $(DEVROOT)" && \ echo "DEV: $(DEV)" && echo "DEVROOT: $(DEVROOT)" && \
for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \ for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \
@@ -79,7 +80,7 @@ $(ROOT): $(SRCDIR)/src/gdbm_dump
mv $$file $$path; \ mv $$file $$path; \
done && \ done && \
find $(ROOT) -type d -empty -delete && \ find $(ROOT) -type d -empty -delete && \
cd $(DEV) && make -f ../Makefile.gdbm-dev && mv *.snap ../ cd $(DEV) && make -f ../Makefile.gdbm-dev && mv *.slp ../
test: $(ROOT) test: $(ROOT)
@cd $(SRCDIR); \ @cd $(SRCDIR); \
@@ -88,7 +89,7 @@ test: $(ROOT)
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(DEV) \ $(DEV) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) $(SRCDIR)

View File

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

View File

@@ -1,3 +0,0 @@
This is the directory where the manifest, snapinfo, and files.tar.gz
files will be created. It is also where the usher file should be
placed if it is required by the package.