parent
69e9280d24
commit
b4e616f772
2 changed files with 86 additions and 0 deletions
66
srcpkgs/grv/patches/ncurses.patch
Normal file
66
srcpkgs/grv/patches/ncurses.patch
Normal file
|
@ -0,0 +1,66 @@
|
|||
--- cmd/grv/vendor/github.com/rgburke/goncurses/defs.go.orig
|
||||
+++ cmd/grv/vendor/github.com/rgburke/goncurses/defs.go
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
package goncurses
|
||||
|
||||
-// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: ncurses
|
||||
+// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: ncursesw
|
||||
// #include <curses.h>
|
||||
import "C"
|
||||
|
||||
--- cmd/grv/vendor/github.com/rgburke/goncurses/form.go.orig
|
||||
+++ cmd/grv/vendor/github.com/rgburke/goncurses/form.go
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
package goncurses
|
||||
|
||||
-// #cgo !darwin,!freebsd,!openbsd pkg-config: form
|
||||
+// #cgo !darwin,!freebsd,!openbsd pkg-config: formw
|
||||
// #cgo darwin freebsd openbsd LDFLAGS: -lform
|
||||
// #include <form.h>
|
||||
// #include <stdlib.h>
|
||||
--- cmd/grv/vendor/github.com/rgburke/goncurses/menu.go.orig
|
||||
+++ cmd/grv/vendor/github.com/rgburke/goncurses/menu.go
|
||||
@@ -7,7 +7,7 @@
|
||||
package goncurses
|
||||
|
||||
/*
|
||||
-#cgo !darwin,!freebsd,!openbsd pkg-config: menu
|
||||
+#cgo !darwin,!freebsd,!openbsd pkg-config: menuw
|
||||
#cgo darwin freebsd openbsd LDFLAGS: -lmenu
|
||||
#include <menu.h>
|
||||
#include <stdlib.h>
|
||||
--- cmd/grv/vendor/github.com/rgburke/goncurses/mouse.go.orig
|
||||
+++ cmd/grv/vendor/github.com/rgburke/goncurses/mouse.go
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
package goncurses
|
||||
|
||||
-// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: ncurses
|
||||
+// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: ncursesw
|
||||
// #cgo windows CFLAGS: -DNCURSES_MOUSE_VERSION
|
||||
// #cgo windows LDFLAGS: -lpdcurses
|
||||
// #include <curses.h>
|
||||
--- cmd/grv/vendor/github.com/rgburke/goncurses/ncurses.go.orig
|
||||
+++ cmd/grv/vendor/github.com/rgburke/goncurses/ncurses.go
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
package goncurses
|
||||
|
||||
-// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: ncurses
|
||||
+// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: ncursesw
|
||||
// #cgo windows CFLAGS: -DNCURSES_MOUSE_VERSION
|
||||
// #cgo windows LDFLAGS: -lpdcurses
|
||||
// #cgo darwin freebsd openbsd LDFLAGS: -lncurses
|
||||
--- cmd/grv/vendor/github.com/rgburke/goncurses/panel.go.orig
|
||||
+++ cmd/grv/vendor/github.com/rgburke/goncurses/panel.go
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
package goncurses
|
||||
|
||||
-// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: panel
|
||||
+// #cgo !darwin,!freebsd,!openbsd,!windows pkg-config: panelw
|
||||
// #cgo darwin freebsd openbsd LDFLAGS: -lpanel
|
||||
// #include <panel.h>
|
||||
// #include <curses.h>
|
20
srcpkgs/grv/template
Normal file
20
srcpkgs/grv/template
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Template file for 'grv'
|
||||
pkgname=grv
|
||||
version=0.1.3
|
||||
revision=1
|
||||
wrksrc=${pkgname}
|
||||
build_style=go
|
||||
go_import_path="github.com/rgburke/grv"
|
||||
go_package="github.com/rgburke/grv/cmd/grv"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="ncurses-devel readline-devel libgit2-devel"
|
||||
short_desc="Terminal based interface for viewing git repositories"
|
||||
maintainer="Michael Gehring <mg@ebfe.org>"
|
||||
license="GPL-3"
|
||||
homepage="https://github.com/rgburke/grv"
|
||||
distfiles="https://github.com/rgburke/grv/releases/download/v${version}/grv-${version}-src.tar.gz"
|
||||
checksum=61c73aff8e73fe86ee5a1b7a37e8506afa87fda3f81edacadfc6b9aeebc22314
|
||||
|
||||
post_install() {
|
||||
vdoc README.md
|
||||
}
|
Loading…
Reference in a new issue