Updated Makefile and PKGBUILD. Version now is 23.21.2.
This commit is contained in:
parent
f500cf945a
commit
58887ac5e6
14
Makefile
14
Makefile
@ -4,24 +4,24 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir}
|
|||||||
SYSDDIR=${SYSDDIR_:/%=%}
|
SYSDDIR=${SYSDDIR_:/%=%}
|
||||||
DESTDIR=/
|
DESTDIR=/
|
||||||
|
|
||||||
VERSION=23.21.1
|
VERSION=23.21.2
|
||||||
|
|
||||||
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
||||||
|
|
||||||
all: ${TARGET}
|
all: web/*.pug.go ${TARGET}
|
||||||
|
|
||||||
.PHONY: ${TARGET} install uninstall
|
.PHONY: ${TARGET}
|
||||||
|
|
||||||
${TARGET}:
|
${TARGET}:
|
||||||
go generate web/web.go
|
|
||||||
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
|
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
|
||||||
|
|
||||||
|
web/*.pug.go: web/templates/*.pug
|
||||||
|
go install github.com/Joker/jade/cmd/jade@latest
|
||||||
|
go generate web/web.go
|
||||||
|
|
||||||
run:
|
run:
|
||||||
bin/${TARGET} -l 127.0.0.1:18123 -db . -ce 10m -gbo Arav -gbp 10
|
bin/${TARGET} -l 127.0.0.1:18123 -db . -ce 10m -gbo Arav -gbp 10
|
||||||
|
|
||||||
install-jade:
|
|
||||||
go install github.com/Joker/jade/cmd/jade@latest
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
|
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
|
||||||
install -Dm 0644 init/systemd.service ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
install -Dm 0644 init/systemd.service ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
||||||
pkgname=dwelling-home
|
pkgname=dwelling-home
|
||||||
pkgver=23.21.1
|
pkgver=23.21.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Arav's dwelling / Home"
|
pkgdesc="Arav's dwelling / Home"
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||||
@ -15,13 +15,7 @@ md5sums=('SKIP')
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
|
|
||||||
export GOPATH="$srcdir"/gopath
|
export GOPATH="$srcdir"/gopath
|
||||||
|
|
||||||
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
|
|
||||||
make DESTDIR="$pkgdir" install-jade
|
|
||||||
fi
|
|
||||||
|
|
||||||
make VERSION=$pkgver DESTDIR="$pkgdir/"
|
make VERSION=$pkgver DESTDIR="$pkgdir/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user