Skip to content

Commit 0660042

Browse files
lpeg: bump to 1.1.0 and add InstallDev
- Bump version to 1.1.0 - Add Build/InstallDev section - Add license file - Minor style tweaks Signed-off-by: Valeriy Kosikhin <[email protected]>
1 parent 37bfd2b commit 0660042

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

lang/lua/lpeg/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2007-2023 Lua.org, PUC-Rio.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

lang/lua/lpeg/Makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,42 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=lpeg
11-
PKG_VERSION:=1.0.2
12-
PKG_RELEASE:=1
11+
PKG_VERSION:=1.1.0
12+
PKG_RELEASE:=2
1313
PKG_MAINTAINER:=Dirk Chang <[email protected]>
1414
PKG_LICENSE:=MIT
15+
PKG_LICENSE_FILES:=LICENSE
1516

1617
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1718
PKG_SOURCE_URL:=http://www.inf.puc-rio.br/~roberto/lpeg/
18-
PKG_HASH:=48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe
19+
PKG_HASH:=4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a
1920

2021
include $(INCLUDE_DIR)/package.mk
2122

2223
define Package/lpeg
2324
SUBMENU:=Lua
2425
SECTION:=lang
2526
CATEGORY:=Languages
26-
TITLE:=LPeg
27+
TITLE:=Pattern-matching library for Lua
2728
URL:=http://www.inf.puc-rio.br/~roberto/lpeg/
2829
DEPENDS:=+lua
2930
endef
3031

3132
define Package/lpeg/description
32-
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs)
33+
LPeg is a pattern-matching library for Lua based on Parsing Expression Grammars (PEGs).
3334
endef
3435

35-
define Build/Configure
36-
endef
37-
38-
# add make variable overrides here
3936
MAKE_FLAGS += \
4037
COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -O2"
4138

39+
define Build/InstallDev
40+
$(INSTALL_DIR) $(1)/usr/lib/lua
41+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua/
42+
endef
43+
4244
define Package/lpeg/install
4345
$(INSTALL_DIR) $(1)/usr/lib/lua
44-
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua
46+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua/
4547
endef
4648

4749
$(eval $(call BuildPackage,lpeg))

0 commit comments

Comments
 (0)