diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-19 19:13:32 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-19 19:39:27 (EST) |
commit | bac9cbc6305662b3d47cff9a2583533a52bb0934 (patch) | |
tree | 2bae93f2d91f69174c72bfe48e5266fca8b0c467 |
Initial commit
-rw-r--r-- | .gitignore | 10 | ||||
-rwxr-xr-x | build | 18 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 3 | ||||
-rw-r--r-- | copyright | 15 | ||||
-rw-r--r-- | format | 1 | ||||
-rwxr-xr-x | release | 13 | ||||
-rw-r--r-- | source.mk | 11 |
8 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd90d0e --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Vim swap and other dot files +.* +!.gitignore + +# Source archives +*-*.orig.tar.* +keyring.gpg + +# Work area +tmp/ @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include ../source.mk + +nop: + @: + +build: + oh-autoconfigure + oh-autobuild + touch $@ + +install: build + oh-autoinstall + oh-fixperms + oh-strip + oh-installfiles + oh-shlibdeps diff --git a/changelog b/changelog new file mode 100644 index 0000000..fd1342a --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +lzip (1.22~rc3-1) trunk + + * Initial release. + + -- Patrick McDermott <patrick.mcdermott@libiquity.com> Sat, 19 Dec 2020 19:07:38 -0500 @@ -0,0 +1,3 @@ +Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com> +Build-Depends: opkbuild (>= 4.2.0), opkhelper-3.0 (>= 3.1.3) +Homepage: https://www.nongnu.org/lzip/ diff --git a/copyright b/copyright new file mode 100644 index 0000000..1bd3cfc --- /dev/null +++ b/copyright @@ -0,0 +1,15 @@ +Upstream Source +=============== + + + +Distribution Packaging +====================== + +Copyright (C) 2019-2020 Patrick McDermott + +These files may be reproduced, distributed, modified, and otherwise dealt in +under the terms of the Expat License. + +On this system, a copy of the Expat License may be found at +<file:///usr/share/common-licenses/Expat>. @@ -0,0 +1 @@ +2.0 @@ -0,0 +1,13 @@ +#!/bin/sh + +set -eu + +read src ver <<-EOF + $(sed '1s/^\(.*\) (\(.*\)) .*$/\1 \2/; q;' changelog) + EOF + +sed '/^ -- .* /{ s/^\( -- .* \).*$/\1'"$(LC_ALL='POSIX' date \ + '+%a, %d %b %Y %H:%M:%S %z')"'/; :l; n; b l; };' changelog >changelog~ +mv changelog~ changelog +git commit -m "changelog: Release ${src} ${ver}" -- changelog +git tag "${src}/${ver}" HEAD diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..e69fb8f --- /dev/null +++ b/source.mk @@ -0,0 +1,11 @@ +upstream_version = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + tr '~' '-') +upstream_archive = $(OPK_SOURCE)-$(upstream_version).tar.gz +upstream_url_base = https://download.savannah.gnu.org/releases/$(OPK_SOURCE) +upstream_url = $(upstream_url_base)/$(upstream_archive) +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz + +$(source_archive): + wget -c -O '$(source_archive)' "$(upstream_url)" + +source: $(source_archive) |