Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f256b57f8 | ||
|
|
3dfb037f37 |
7
Makefile
7
Makefile
@@ -9,13 +9,13 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
export SRCPKG = curl
|
export SRCPKG = curl
|
||||||
export DEPENDS = glibc,gmp,gnutls,libcurl,nettle,openssl,zlib
|
export DEPENDS = glibc,gmp,gnutls,libcurl,libnettle,openssl,zlib
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = http://curl.haxx.se/
|
export URL = http://curl.haxx.se/
|
||||||
BRIEF = Tool which transfers data from or to a server
|
BRIEF = Tool which transfers data from or to a server
|
||||||
DESC = curl is a command line tool and library for transferring data \
|
DESC = curl is a command line tool and library for transferring data \
|
||||||
with URL syntax
|
with URL syntax
|
||||||
SNAPVER = 2
|
SNAPVER = 4
|
||||||
|
|
||||||
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')
|
||||||
@@ -31,7 +31,7 @@ DEVROOT := $(DEV)/ROOT
|
|||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
$(SRCDIR)/configure:
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
tar -jxf $(ARCHIVE); \
|
tar -jxf $(ARCHIVE); \
|
||||||
elif [ '$(TYPE)' == 'application/x-gzip' ]; then \
|
elif [ '$(TYPE)' == 'application/x-gzip' ]; then \
|
||||||
@@ -44,6 +44,7 @@ $(SRCDIR)/configure:
|
|||||||
echo 'Unable to determine archive type'; \
|
echo 'Unable to determine archive type'; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
@touch $(SRCDIR)/configure
|
||||||
|
|
||||||
$(SRCDIR)/config.log: $(SRCDIR)/configure
|
$(SRCDIR)/config.log: $(SRCDIR)/configure
|
||||||
@cd $(SRCDIR) && \
|
@cd $(SRCDIR) && \
|
||||||
|
|||||||
Reference in New Issue
Block a user