1 # Template build file for 'gogs'
6 go_import_path="github.com/gogits/gogs"
7 short_desc="Self-hosted Git Service in Go"
8 maintainer="John Regan <john@jrjrtech.com>"
10 homepage="https://gogs.io"
11 hostmakedepends="git curl"
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"
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"
33 cd "$GOPATH/src/github.com/gogits/gogs"
34 TMPDIR=${PWD}/tmp/ GOOS=linux GOPATH=$GOPATH go build -tags "sqlite redis memcache"
39 cd "$GOPATH/src/github.com/gogits/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