git: e826067cdbc1 - main - sysutils/lua-puremagic: add lua-puremagic.

From: Vanilla I. Shu <vanilla_at_FreeBSD.org>
Date: Wed, 28 Dec 2022 14:22:26 UTC
The branch main has been updated by vanilla:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e826067cdbc1fb5e800cf3a954ffa17875a59acf

commit e826067cdbc1fb5e800cf3a954ffa17875a59acf
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2022-12-28 14:21:26 +0000
Commit:     Vanilla I. Shu <vanilla@FreeBSD.org>
CommitDate: 2022-12-28 14:21:26 +0000

    sysutils/lua-puremagic: add lua-puremagic.
    
    Lua module that detects the mime type of file based on their contents
    
    PR:             268037
    Reported by:    Manuel Wiesinger <manuel at mmap.at>
---
 sysutils/lua-puremagic/Makefile  | 26 ++++++++++++++++++++++++++
 sysutils/lua-puremagic/distinfo  |  3 +++
 sysutils/lua-puremagic/pkg-descr |  2 ++
 3 files changed, 31 insertions(+)

diff --git a/sysutils/lua-puremagic/Makefile b/sysutils/lua-puremagic/Makefile
new file mode 100644
index 000000000000..4a1a8f64e57f
--- /dev/null
+++ b/sysutils/lua-puremagic/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	puremagic
+PORTVERSION=	1.0.1
+CATEGORIES=	sysutils
+PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
+
+MAINTAINER=	mdw@FreeBSD.org
+COMMENT=	Lua module that detects the mime type of file based on their contents
+WWW=		https://github.com/wbond/puremagic/
+
+LICENSE=	MIT
+
+USES=		lua:module
+
+NO_BUILD=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	wbond
+GH_PROJECT=	puremagic
+
+PLIST_FILES=	${LUA_MODSHAREDIR}/puremagic.lua
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
+	${INSTALL_DATA} ${WRKSRC}/puremagic.lua ${STAGEDIR}${LUA_MODSHAREDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/lua-puremagic/distinfo b/sysutils/lua-puremagic/distinfo
new file mode 100644
index 000000000000..c4f6482657dd
--- /dev/null
+++ b/sysutils/lua-puremagic/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1669601089
+SHA256 (wbond-puremagic-1.0.1_GH0.tar.gz) = 7aa363e766b860bcba0a8ed282ab3fa64b0a36da74d4ac53f0ea25d0b8961eda
+SIZE (wbond-puremagic-1.0.1_GH0.tar.gz) = 1282633
diff --git a/sysutils/lua-puremagic/pkg-descr b/sysutils/lua-puremagic/pkg-descr
new file mode 100644
index 000000000000..019400df3647
--- /dev/null
+++ b/sysutils/lua-puremagic/pkg-descr
@@ -0,0 +1,2 @@
+A pure Lua module that detects the mime type of file based on their contents.
+Falls back to detecting based on extension for plain text files.