diff --git a/srcpkgs/dnote-cli/patches/uuid.patch b/srcpkgs/dnote-cli/patches/uuid.patch new file mode 100644 index 0000000000..a8e8a424cb --- /dev/null +++ b/srcpkgs/dnote-cli/patches/uuid.patch @@ -0,0 +1,22 @@ +--- utils/utils.go.bck 2018-02-13 03:06:34.295215926 -0500 ++++ utils/utils.go 2018-02-13 03:06:52.708205990 -0500 +@@ -24,7 +24,7 @@ + + // GenerateUID returns a uid + func GenerateUID() string { +- return uuid.NewV4().String() ++ return uuid.Must(uuid.NewV4()).String() + } + + func GetInput() (string, error) { +--- migrate/migrations.go.bck 2018-02-13 03:10:28.827089361 -0500 ++++ migrate/migrations.go 2018-02-13 03:10:51.090077347 -0500 +@@ -48,7 +48,7 @@ + notes := []migrateToV2PostNote{} + for _, note := range book { + newNote := migrateToV2PostNote{ +- UUID: uuid.NewV4().String(), ++ UUID: uuid.Must(uuid.NewV4()).String(), + Content: note.Content, + AddedOn: note.AddedOn, + EditedOn: 0, diff --git a/srcpkgs/dnote-cli/template b/srcpkgs/dnote-cli/template new file mode 100644 index 0000000000..1d33416aa0 --- /dev/null +++ b/srcpkgs/dnote-cli/template @@ -0,0 +1,18 @@ +# Template file for 'dnote-cli' +pkgname=dnote-cli +version=0.2.0 +revision=1 +wrksrc=cli-${version} +build_style=go +go_import_path="github.com/dnote-io/cli" +hostmakedepends="git dep" +short_desc="Capture what you learn as you code without leaving the command line" +maintainer="Toyam Cox " +license="MIT" +homepage="https://dnote.io/" +distfiles="https://github.com/dnote-io/cli/archive/v${version}.tar.gz" +checksum=c64697d6884b728a48bd0ccc8353e1b40f0d34489935427c59b914aa76c0e316 + +post_install() { + vlicense LICENSE +}