+++ /dev/null
-autotools: fix install directories
-
-Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
-
-Index: b/Makefile.am
-===================================================================
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -3,7 +3,7 @@
- SUBDIRS = src \
- doc
-
--pkgconfigdir = $(libdir)/pkgconfig
-+pkgconfigdir = $(prefix)/lib/pkgconfig
- pkgconfig_DATA = luacrypto.pc
-
- test: all
-Index: b/configure.ac
-===================================================================
---- a/configure.ac
-+++ b/configure.ac
-@@ -31,7 +31,7 @@
- PKG_CHECK_MODULES([LUA], [lua])
-
- # lua libdir
--LUALIBDIR="`$PKGCONFIG --variable=libdir lua`"
-+LUALIBDIR="`$PKGCONFIG --variable=INSTALL_CMOD lua`"
-
- # dest of headers
- CRYPTOINC="${includedir}/${PACKAGE_NAME}"
#
################################################################################
-LUACRYPTO_VERSION = 0.3.2
-LUACRYPTO_SITE = $(call github,mkottman,luacrypto,$(LUACRYPTO_VERSION))
+LUACRYPTO_VERSION_UPSTREAM = 0.3.2
+LUACRYPTO_VERSION = $(LUACRYPTO_VERSION_UPSTREAM)-1
+LUACRYPTO_SUBDIR = luacrypto-$(LUACRYPTO_VERSION_UPSTREAM)
LUACRYPTO_LICENSE = MIT
-LUACRYPTO_LICENSE_FILES = COPYING
-LUACRYPTO_DEPENDENCIES = lua openssl host-pkgconf
-LUACRYPTO_AUTORECONF = YES
+LUACRYPTO_LICENSE_FILES = $(LUACRYPTO_SUBDIR)/COPYING
+LUACRYPTO_DEPENDENCIES = luainterpreter openssl
-$(eval $(autotools-package))
+$(eval $(luarocks-package))