1 Commits

Author SHA1 Message Date
Jay Larson
41f258b3f1 Moved to slp format 2020-08-27 19:28:38 -05:00
3 changed files with 9 additions and 10 deletions

View File

@@ -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)

View File

@@ -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

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.