Files
packages/lang/perl-ack/Makefile
Daniel Cousens 8a6a3d6f5d treewide: use https for some PKG_SOURCE_URLs
This changes a number of PKG_SOURCE_URLs that were using the http protocol to use https if available.
HTTPS was verified as functioning for the updated hosts.

Signed-off-by: Daniel Cousens <github@dcousens.com>
2025-06-15 15:56:20 +02:00

64 lines
1.5 KiB
Makefile

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=perl-ack
PKG_VERSION:=3.8.2
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://www.cpan.org/authors/id/P/PE/PETDANCE/
PKG_SOURCE:=ack-v$(PKG_VERSION).tar.gz
PKG_HASH:=a5239f5a2c12e0c7b4e432ffd7e936feef945a9621a41591c77d3b0cf458560b
PKG_LICENSE:=Artistic-2.0
PKG_LICENSE_FILE:=LICENSE.md
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/ack-v$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk
define Package/ack
SECTION:=utils
CATEGORY:=Utilities
TITLE:=A grep-like source code search tool
URL:=https://beyondgrep.com
DEPENDS:=+perl +perl-ack
PROVIDES:=ack-grep
endef
define Package/perl-ack
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=grep-like text finder
URL:=http://search.cpan.org/dist/ack/
DEPENDS:=perl +perl-file-next +perlbase-filetest +perlbase-if \
+perlbase-list +perlbase-pod +perlbase-test +perlbase-text \
+perlbase-term
endef
define Build/Configure
$(call perlmod/Configure,,)
endef
define Build/Compile
$(call perlmod/Compile,,)
endef
define Package/ack/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ack $(1)/usr/bin/
$(SED) "1"'!'"b;s,^#"'!'".*perl.*,#"'!'"/usr/bin/perl," -i --follow-symlinks $(1)/usr/bin/ack
endef
define Package/perl-ack/install
$(call perlmod/Install,$(1),App auto/ack)
endef
$(eval $(call BuildPackage,ack))
$(eval $(call BuildPackage,perl-ack))