diff --git a/Makefile b/Makefile index 093acb5..5a2cbcc 100644 --- a/Makefile +++ b/Makefile @@ -12,22 +12,23 @@ export SRCPKG = gdbm export DEPENDS = glibc export ARCH = x86_64 export URL = http://www.gnu.org.ua/software/gdbm/ +REPO = core BRIEF = Library of database functions 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. -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) DEV := $(PWD)/gdbm-dev DEVROOT := $(DEV)/ROOT -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux $(SRCDIR)/configure: $(ARCHIVE) @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @@ -70,7 +71,7 @@ $(ROOT): $(SRCDIR)/src/gdbm_dump @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ rm -v $(ROOT)/usr/share/info/dir - @install -v -d $(DEV)/SNAP && \ + @install -v -d $(DEV)/SL && \ install -v -d $(DEVROOT) && \ echo "DEV: $(DEV)" && echo "DEVROOT: $(DEVROOT)" && \ for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \ @@ -79,7 +80,7 @@ $(ROOT): $(SRCDIR)/src/gdbm_dump mv $$file $$path; \ done && \ 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) @cd $(SRCDIR); \ @@ -88,7 +89,7 @@ test: $(ROOT) clean: @rm -rvf $(ROOT) \ $(DEV) \ - $(SNAPINFO) \ + $(SLINFO) \ $(MANIFEST) \ $(FILES) \ $(SRCDIR) diff --git a/Makefile.gdbm-dev b/Makefile.gdbm-dev index 3d3dbdd..f1a74f6 100644 --- a/Makefile.gdbm-dev +++ b/Makefile.gdbm-dev @@ -9,7 +9,8 @@ # GNU General Public License for more details. DEPENDS = gdbm +REPO = dev BRIEF = Development files for gdbm DESC = Development files for gdbm -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux diff --git a/SNAP/README b/SNAP/README deleted file mode 100644 index 19a3ff1..0000000 --- a/SNAP/README +++ /dev/null @@ -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.