diff options
Diffstat (limited to 'testing/gogs/APKBUILD')
-rw-r--r-- | testing/gogs/APKBUILD | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/testing/gogs/APKBUILD b/testing/gogs/APKBUILD deleted file mode 100644 index 47405c3a8a..0000000000 --- a/testing/gogs/APKBUILD +++ /dev/null @@ -1,84 +0,0 @@ -# Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: 7heo <7heo@mail.com> -pkgname=gogs -pkgver=0.9.48 -pkgrel=2 -pkgdesc="A self-hosted Git service written in Go" -url="http://gogs.io/" -arch="all" -license="MIT" -depends="git" -makedepends="glide go-tools perl libcap" -install="$pkgname.pre-install" -pkgusers="gogs" -pkggroups="www-data" -options="!strip" -source="${pkgname}-${pkgver}.tar.gz::https://github.com/gogits/$pkgname/archive/v$pkgver.tar.gz - $pkgname.initd - $pkgname.confd - $pkgname.ini - glide.yaml.patch - glide.lock.patch" -builddir="$srcdir/${pkgname}-${pkgver}" - -build() { - export GOPATH="$startdir" - cd "$builddir" || return 1 - glide install || return 1 - go fix || return 1 - # Note: sqlite causes problems without the pie buildmode - go build -buildmode=pie -v -tags "sqlite redis memcache cert" ||return 1 -} - -package() { - cd "$builddir" - - install -d -m 0755 \ - "$pkgdir"/usr/share/webapps/$pkgname || return 1 - - # TODO: Is it really necessary to be world-readable?! - install -d -m 0755 -o gogs -g www-data \ - "$pkgdir"/var/lib/$pkgname \ - "$pkgdir"/var/lib/$pkgname/git \ - "$pkgdir"/var/lib/$pkgname/db \ - "$pkgdir"/var/lib/$pkgname/avatars \ - "$pkgdir"/var/lib/$pkgname/attachements \ - "$pkgdir"/var/cache/$pkgname/sessions \ - "$pkgdir"/var/log/$pkgname \ - "$pkgdir"/etc/$pkgname/conf || return 1 - - install -D -m 0755 ${pkgname}-${pkgver} \ - "$pkgdir"/usr/bin/$pkgname || return 1 - # Allow to bind to port 80. - setcap cap_net_bind_service=+ep \ - "$pkgdir"/usr/bin/$pkgname || return 1 - - install -D -m 0664 -o gogs -g www-data "$srcdir"/${pkgname}.ini \ - "$pkgdir"/etc/$pkgname/conf/app.ini || return 1 - - mv public templates "$pkgdir"/usr/share/webapps/$pkgname/ || return 1 - - install -D -m755 "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - install -D -m644 "$srcdir"/$pkgname.confd \ - "$pkgdir"/etc/conf.d/$pkgname || return 1 -} - -md5sums="466d4b1a6a0575875b48f331bb87864f gogs-0.9.48.tar.gz -91cd8b6b27509beecb53594463315f43 gogs.initd -6b3f501f9c37b5032cab8b49b5621fc4 gogs.confd -82edfdabfdf0ac64dc545036ca499465 gogs.ini -7cb56b6f8821874d9b277ed94e76f517 glide.yaml.patch -abf7ac0fe09e73d4dbe455b242426b65 glide.lock.patch" -sha256sums="b612b8994838ead81cd0d99da80ac32ed77b71d22af753c8c47a48db61b8eff7 gogs-0.9.48.tar.gz -23a9bfcf7d1fd7cb5b7bf13ab0b0f412c29c1ebdd62fc02c78dd885cbe5d703d gogs.initd -a1c584dbc2d44694ffcf87ecafdf6a43ae81370175ca9cc6e6ff7623b8b05254 gogs.confd -ead0082c56e8e8f9e9ba7f4c206c2a18bb732726137b71e05d83347638562530 gogs.ini -492d5ef3ddff44f5444d8ea09978924b4e0ea3a1f3bed958c0ff6c142183c4f1 glide.yaml.patch -aae76bbdfd93806beca5b8bcc5cb9c829ca934b6d640e318587535911dfff72d glide.lock.patch" -sha512sums="615e35b68b29d306a11874beae11e93973522970131516f67aabc90834db4297b4c2d386f1546a6d9c0e874cc77a5b3341732d701843456a47960c1e05a53ec7 gogs-0.9.48.tar.gz -be5a9ef2cae1ee2e8106feb6a997ae06519af91fe57f746d20996e79c332c93bb43fc53f79ff4e8ce13222afc6f3dc7bc5cbb758ef201b03e49d809c87c8c4c7 gogs.initd -52ce41c05c263b790221a04d13d2eb9bba689e4bd72daf5b6af31416e80a485a46bae19e18581d7bde879307283847e6486686a2fe4140fe38ebb6f315e11a86 gogs.confd -4c2b398cf93ebb8b743b9e7ec1b075706427081036effb53fa90729e70fbc3eb92f2f853278b887ca79dc35cd55a64e1bff4d18e1ad246beab2a723aa9cd71ba gogs.ini -8fef053fc55cd170339eea1e9acbfb2c0e5eda67526ac357dbc6fe3af22af29cbcca156db3cc02d2bc505661f5410755ad7dc98b615e58271cf4bb2c79bbbfbf glide.yaml.patch -54968bbbf6180e124b3881be65fcd2be64b03cdf99e3d3d7451bf6974934682c5205c39dc0be5f096670a81005e3ff271435b00b62b681e9a790bd54112b51c5 glide.lock.patch" |