view src/msys-dos2unix.mk @ 4559:cb76b5f50b68

msys-*: updates to current latest * src/msys-bash.mk, src/src-msys-bash.mk: update version, checksum for 3.1.23-1 * src/msys-dos2unix.mk, src/src-msys-dos2unix.mk: update version, checksum for 7.3.2-1
author John D
date Wed, 29 Nov 2017 16:05:10 -0500
parents ae4193aad5fe
children f3c8a0461199
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := msys-dos2unix
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 7.3.2-1
$(PKG)_CHECKSUM := de66e045c855f68b5870359bd9b04bd241e247b2
$(PKG)_REMOTE_SUBDIR := dos2unix/dos2unix-$($(PKG)_VERSION)
$(PKG)_SUBDIR   := 
$(PKG)_FILE     := dos2unix-$($(PKG)_VERSION)-msys-1.0.18-bin.tar.lzma
$(PKG)_URL      := $(MSYS_EXTENSION_URL)/$($(PKG)_REMOTE_SUBDIR)/$($(PKG)_FILE)/download
$(PKG)_DEPS     := 

define $(PKG)_UPDATE
    $(WGET) -q -O- '$(MSYS_EXTENSION_URL)/dos2unix' | \
    $(SED) -n 's,.*title="dos2unix-\([0-9][^"]*\)".*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    mkdir -p '$(MSYS_EXTENSION_DIR)'
    cd '$(1)' && tar cf - . | ( cd '$(MSYS_EXTENSION_DIR)'; tar xpf - )
    mkdir -p '$(MSYS_INFO_DIR)'
    cd '$(1)' && find . > '$(MSYS_INFO_DIR)'/$(PKG).list
endef