diff options
-rw-r--r-- | .gitignore | 10 | ||||
-rwxr-xr-x | build | 17 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 6 | ||||
-rw-r--r-- | format | 1 | ||||
-rwxr-xr-x | release | 13 | ||||
-rw-r--r-- | source.mk | 11 |
7 files changed, 63 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,17 @@ +#!/usr/bin/make -f + +include ../source.mk + +nop: + @: + +build: + 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..4a2d294 --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +edid-decode (0+git20201230.95d81c9-1) trunk + + * Initial release. + + -- Patrick McDermott <patrick.mcdermott@libiquity.com> Wed, 06 Jan 2021 00:49:08 -0500 @@ -0,0 +1,6 @@ +Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com> +Build-Depends: + opkbuild (>= 4.2.1), + opkhelper-3.0 (>= 3.1.3), + git, +Homepage: https://git.linuxtv.org/edid-decode.git/ @@ -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..30fd20b --- /dev/null +++ b/source.mk @@ -0,0 +1,11 @@ +upstream_commit = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + sed 's/^.*[~+]git........\.\([0-9a-f]*\).*$$/\1/') +upstream_git_uri = git://linuxtv.org/$(OPK_SOURCE).git +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2 + +$(source_archive): + git clone $(upstream_git_uri) $(OPK_SOURCE)/ + (cd $(OPK_SOURCE)/ && git archive --format=tar --prefix=$(OPK_SOURCE)/ \ + "$(upstream_commit)") | bzip2 >$@ + +source: $(source_archive) |