Compare commits

...

3 Commits

3 changed files with 10 additions and 15 deletions

View File

@ -6,7 +6,9 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir}
SYSDDIR=${SYSDDIR_:/%=%}
DESTDIR=/
LDFLAGS=-ldflags "-s -w -X main.version=2.0.2" -tags osusergo,netgo
VERSION=2.0.2
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
all: ${TARGET}

View File

@ -33,7 +33,7 @@ It will return an ID of a new CAPTCHA in `text/plain`.
Responds with an image in JPEG format (`image/jpeg`).
An optional URL parameter `style=` set a name of a CAPTCHA style if it is
supported by CAPTCHA implementation.
supported by CAPTCHA implementation. E.g. `style=dark`.
#### HTTP codes
- `200` if exists
@ -110,7 +110,7 @@ Get an image for a CAPTCHA:
i := inmemdb.Image(captchaID, captchaStyle)
if i == nil {
... // error handling
... // do something if there was no image returned
}
jpeg.Encode(w, *i, &jpeg.Options{Quality: 20})

View File

@ -1,30 +1,23 @@
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
pkgname=justcaptcha
pkgver=2.0.2
pkgrel=1
pkgdesc="Just a CAPTCHA service"
pkgrel=2
pkgdesc="Just a standalone simple CAPTCHA service"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://git.arav.su/Arav/justcaptcha"
license=('MIT')
groups=()
depends=()
makedepends=('go')
provides=('justcaptcha')
conflicts=('justcaptcha')
replaces=()
backup=()
options=()
install=
source=('https://git.arav.su/Arav/justcaptcha/archive/2.0.2.tar.gz')
noextract=()
source=("https://git.arav.su/Arav/justcaptcha/archive/v${pkgver}.tar.gz")
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/"
make VERSION=$pkgver DESTDIR="$pkgdir/"
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
make VERSION=$pkgver DESTDIR="$pkgdir/" install
}