annotate src/npp.mk @ 5178:7b798a7f20d1

* src/npp.mk: fix update rule
author John Donoghue
date Thu, 10 Oct 2019 13:09:44 -0400
parents 9c90616e402f
children df82dcc892d1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2968
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := npp
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
5150
9c90616e402f * src/npp.mk: update to v7.7.1
John Donoghue
parents: 3931
diff changeset
6 $(PKG)_VERSION := 7.7.1
9c90616e402f * src/npp.mk: update to v7.7.1
John Donoghue
parents: 3931
diff changeset
7 $(PKG)_CHECKSUM := f19d07c5dca73fd9baa1e5a2b4470a639e0126f6
9c90616e402f * src/npp.mk: update to v7.7.1
John Donoghue
parents: 3931
diff changeset
8 $(PKG)_SUBDIR :=
2968
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG).$($(PKG)_VERSION).bin.zip
5150
9c90616e402f * src/npp.mk: update to v7.7.1
John Donoghue
parents: 3931
diff changeset
10 $(PKG)_URL := https://notepad-plus-plus.org/repository/7.x/$($(PKG)_VERSION)/$($(PKG)_FILE)
2968
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
5150
9c90616e402f * src/npp.mk: update to v7.7.1
John Donoghue
parents: 3931
diff changeset
14 $(WGET) -q -O- 'https://notepad-plus-plus.org/download/' | \
5178
7b798a7f20d1 * src/npp.mk: fix update rule
John Donoghue
parents: 5150
diff changeset
15 $(GREP) 'Current' | \
7b798a7f20d1 * src/npp.mk: fix update rule
John Donoghue
parents: 5150
diff changeset
16 $(SED) -n 's|.*/v\([^/]*\).*|\1|p' | \
5150
9c90616e402f * src/npp.mk: update to v7.7.1
John Donoghue
parents: 3931
diff changeset
17 tail -1
2968
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 endef
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 define $(PKG)_BUILD
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 mkdir -p '$(NOTEPAD_BASE_DIR)'
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 cd '$(1)' && tar cf - . | ( cd '$(NOTEPAD_BASE_DIR)'; tar xpf - )
6175239c45eb add missing npp.mk file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 endef