python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / gogs / template
blobe2ce7efd91bd773f4951cb8a03fe5c297165f6de
1 # Template build file for 'gogs'
2 pkgname=gogs
3 version=0.11.43
4 revision=1
5 build_style=go
6 go_import_path="github.com/gogits/gogs"
7 short_desc="Self-hosted Git Service in Go"
8 maintainer="John Regan <john@jrjrtech.com>"
9 license="MIT"
10 homepage="https://gogs.io"
11 hostmakedepends="git curl"
12 depends="git"
13 distfiles="https://github.com/gogits/gogs/archive/v${version}.tar.gz"
14 checksum=44ce25372fee4bf0cd3de54d7e7038ddc0079779c3ace7b4a0a53bb85853b14d
16 conf_files="/etc/gogs.ini"
17 system_accounts="gogs"
18 gogs_homedir="/srv/gogs"
19 gogs_shell="/bin/bash"
21 export CGO_ENABLED=1
24 post_extract() {
25         mkdir tmp
26         mkdir -p $GOPATH/src/github.com/gogits
27         ln -s $PWD $GOPATH/src/github.com/gogits/${pkgname}
28         cd "$GOPATH/src/github.com/gogits/gogs"
29         TMPDIR=${PWD}/tmp/ GOPATH=$GOPATH go get -d -tags "sqlite redis memcache" "github.com/gogits/gogs"
32 do_build() {
33         cd "$GOPATH/src/github.com/gogits/gogs"
34         TMPDIR=${PWD}/tmp/ GOOS=linux GOPATH=$GOPATH go build -tags "sqlite redis memcache"
35         rm -rf tmp
38 do_install() {
39         cd "$GOPATH/src/github.com/gogits/gogs"
40         vbin gogs gogs
41         install -d "$DESTDIR/usr/share/themes/gogs/default"
42         cp -r public "$DESTDIR/usr/share/themes/gogs/default/"
43         cp -r templates "$DESTDIR/usr/share/themes/gogs/default/"
44         vconf ${FILESDIR}/gogs.ini
45         vsconf ${FILESDIR}/gogs.ini
46         vlicense LICENSE
47         vdoc README.md
48         vsv gogs