Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b79ea8c27 |
17
Makefile
17
Makefile
@@ -12,24 +12,25 @@ export SRCPKG = nettle
|
|||||||
export DEPENDS = glibc,gmp
|
export DEPENDS = glibc,gmp
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = http://www.lysator.liu.se/~nisse/nettle/
|
export URL = http://www.lysator.liu.se/~nisse/nettle/
|
||||||
|
REPO = main
|
||||||
BRIEF = Cryptographic library
|
BRIEF = Cryptographic library
|
||||||
DESC = Nettle is a cryptographic library that is designed to fit easily in \
|
DESC = Nettle is a cryptographic library that is designed to fit easily in \
|
||||||
more or less any context
|
more or less any context
|
||||||
SNAPVER = 1
|
SLVER = 2
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
LIB := $(PWD)/libnettle
|
LIB := $(PWD)/libnettle
|
||||||
LIBROOT := $(LIB)/ROOT
|
LIBROOT := $(LIB)/ROOT
|
||||||
DEV := $(PWD)/nettle-dev
|
DEV := $(PWD)/nettle-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 \
|
||||||
@@ -74,9 +75,9 @@ $(ROOT): $(SRCDIR)/libnettle.so
|
|||||||
$(ROOT)/usr/share/doc/nettle/nettle.html && \
|
$(ROOT)/usr/share/doc/nettle/nettle.html && \
|
||||||
rm $(ROOT)/usr/share/info/dir
|
rm $(ROOT)/usr/share/info/dir
|
||||||
|
|
||||||
@install -v -d $(LIB)/SNAP && \
|
@install -v -d $(LIB)/SL && \
|
||||||
install -v -d $(LIBROOT)/usr/lib && \
|
install -v -d $(LIBROOT)/usr/lib && \
|
||||||
install -v -d $(DEV)/SNAP && \
|
install -v -d $(DEV)/SL && \
|
||||||
install -v -d $(DEVROOT) && \
|
install -v -d $(DEVROOT) && \
|
||||||
mv -v $(ROOT)/usr/lib/lib* $(LIBROOT)/usr/lib && \
|
mv -v $(ROOT)/usr/lib/lib* $(LIBROOT)/usr/lib && \
|
||||||
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
|
for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \
|
||||||
@@ -85,8 +86,8 @@ $(ROOT): $(SRCDIR)/libnettle.so
|
|||||||
mv -v $$file $$path; \
|
mv -v $$file $$path; \
|
||||||
done && \
|
done && \
|
||||||
find $(ROOT) -type d -empty -delete && \
|
find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(LIB) && make -f ../Makefile.libnettle && mv *.snap ../ && \
|
cd $(LIB) && make -f ../Makefile.libnettle && mv *.slp ../ && \
|
||||||
cd $(DEV) && make -f ../Makefile.nettle-dev && mv *.snap ../
|
cd $(DEV) && make -f ../Makefile.nettle-dev && mv *.slp ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
@@ -96,7 +97,7 @@ clean:
|
|||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DEV) \
|
$(DEV) \
|
||||||
$(LIB) \
|
$(LIB) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = glibc,gmp
|
DEPENDS = glibc,gmp
|
||||||
|
REPO = main
|
||||||
BRIEF = Runtime library for nettle
|
BRIEF = Runtime library for nettle
|
||||||
DESC = Runtime library for nettle
|
DESC = Runtime library for nettle
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = libnettle
|
DEPENDS = libnettle
|
||||||
|
REPO = dev
|
||||||
BRIEF = Development files for nettle
|
BRIEF = Development files for nettle
|
||||||
DESC = Development files for nettle
|
DESC = Development files for nettle
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user