gogs: update to 0.11.66.
This commit is contained in:
parent
5304e9dc71
commit
35d2d2770b
|
@ -1,17 +1,19 @@
|
||||||
# Template build file for 'gogs'
|
# Template build file for 'gogs'
|
||||||
pkgname=gogs
|
pkgname=gogs
|
||||||
version=0.11.43
|
version=0.11.66
|
||||||
revision=2
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/gogits/gogs"
|
go_import_path="github.com/gogs/gogs"
|
||||||
|
go_build_tags="sqlite pam cert"
|
||||||
short_desc="Self-hosted Git Service in Go"
|
short_desc="Self-hosted Git Service in Go"
|
||||||
maintainer="John Regan <john@jrjrtech.com>"
|
maintainer="John Regan <john@jrjrtech.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://gogs.io"
|
homepage="https://gogs.io"
|
||||||
hostmakedepends="git curl"
|
hostmakedepends="git curl"
|
||||||
|
makedepends="pam-devel"
|
||||||
depends="git"
|
depends="git"
|
||||||
distfiles="https://github.com/gogits/gogs/archive/v${version}.tar.gz"
|
distfiles="https://github.com/gogits/gogs/archive/v${version}.tar.gz"
|
||||||
checksum=44ce25372fee4bf0cd3de54d7e7038ddc0079779c3ace7b4a0a53bb85853b14d
|
checksum=492233d48045f607a5822d2c3644ac174ce2e43741f770896f400051c398274e
|
||||||
|
|
||||||
conf_files="/etc/gogs.ini"
|
conf_files="/etc/gogs.ini"
|
||||||
system_accounts="gogs"
|
system_accounts="gogs"
|
||||||
|
@ -20,24 +22,7 @@ gogs_shell="/bin/bash"
|
||||||
|
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
|
|
||||||
|
post_install() {
|
||||||
post_extract() {
|
|
||||||
mkdir tmp
|
|
||||||
mkdir -p $GOPATH/src/github.com/gogits
|
|
||||||
ln -s $PWD $GOPATH/src/github.com/gogits/${pkgname}
|
|
||||||
cd "$GOPATH/src/github.com/gogits/gogs"
|
|
||||||
TMPDIR=${PWD}/tmp/ GOPATH=$GOPATH go get -d -tags "sqlite redis memcache" "github.com/gogits/gogs"
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
cd "$GOPATH/src/github.com/gogits/gogs"
|
|
||||||
TMPDIR=${PWD}/tmp/ GOOS=linux GOPATH=$GOPATH go build -tags "sqlite redis memcache"
|
|
||||||
rm -rf tmp
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
cd "$GOPATH/src/github.com/gogits/gogs"
|
|
||||||
vbin gogs gogs
|
|
||||||
install -d "$DESTDIR/usr/share/themes/gogs/default"
|
install -d "$DESTDIR/usr/share/themes/gogs/default"
|
||||||
cp -r public "$DESTDIR/usr/share/themes/gogs/default/"
|
cp -r public "$DESTDIR/usr/share/themes/gogs/default/"
|
||||||
cp -r templates "$DESTDIR/usr/share/themes/gogs/default/"
|
cp -r templates "$DESTDIR/usr/share/themes/gogs/default/"
|
||||||
|
|
Loading…
Reference in New Issue