Moved to slp format

This commit is contained in:
2020-08-26 16:22:32 -05:00
parent 6e39f7e9c7
commit b4db9cae7e
3 changed files with 9 additions and 7 deletions

View File

@@ -12,22 +12,23 @@ export SRCPKG = mpfr
export DEPENDS = glibc,gmp
export ARCH = x86_64
export URL = http://www.mpfr.org/
REPO = main
BRIEF = C library with improved mathematical precision
DESC = The MPFR library is a C library for multiple-precision floating-point \
computations with correct rounding.
SNAPVER = 4
SLVER = 5
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)/mpfr-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 \
@@ -72,7 +73,7 @@ $(ROOT): $(SRCDIR)/src/grandom.o
make install-html DESTDIR=$(ROOT) && \
rm -v $(ROOT)/usr/share/info/dir
@install -v -d $(DEV)/SNAP && \
@install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \
install -v -d -m 755 $(DEVROOT)/usr/share && \
for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \
@@ -82,7 +83,7 @@ $(ROOT): $(SRCDIR)/src/grandom.o
done && \
mv -v $(ROOT)/usr/share/doc $(DEVROOT)/usr/share/doc && \
find $(ROOT) -type d -empty -delete && \
cd $(DEV) && make -f ../Makefile.mpfr-dev && mv *.snap ../
cd $(DEV) && make -f ../Makefile.mpfr-dev && mv *.slp ../
test: $(ROOT)
@cd $(SRCDIR) && make check
@@ -90,7 +91,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 = mpfr
REPO = dev
BRIEF = Development files for mpfr
DESC = Development files for mpfr
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux