Version was set to 23.24.0. And Makefile and PKGBUILD structure was updated to a recently used one across my other services.
This commit is contained in:
parent
80647144b5
commit
ed62b37dbc
25
Makefile
25
Makefile
@ -2,29 +2,34 @@ TARGET=dwelling-files
|
|||||||
|
|
||||||
SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir}
|
SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir}
|
||||||
SYSDDIR=${SYSDDIR_:/%=%}
|
SYSDDIR=${SYSDDIR_:/%=%}
|
||||||
DESTDIR=/
|
|
||||||
|
|
||||||
LDFLAGS=-ldflags "-s -w -X main.version=23.8.0" -tags osusergo,netgo
|
DESTDIR:=
|
||||||
|
PREFIX:=/usr/local
|
||||||
|
|
||||||
all: ${TARGET}
|
VERSION=23.24.0
|
||||||
|
|
||||||
|
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
||||||
|
|
||||||
|
all: web/*.jade.go ${TARGET}
|
||||||
|
|
||||||
.PHONY: ${TARGET}
|
.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/*.jade.go: web/templates/*.jade
|
||||||
|
go install github.com/Joker/jade/cmd/jade@latest
|
||||||
|
go generate web/web.go
|
||||||
|
|
||||||
run:
|
run:
|
||||||
bin/${TARGET} -file-handling -path /mnt/data -listen 127.0.0.1:19135
|
bin/${TARGET} -file-handling -path /mnt/data -listen 127.0.0.1:19135
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
|
install -Dm 0755 bin/${TARGET} ${DESTDIR}${PREFIX}/bin/${TARGET}
|
||||||
install -Dm 0644 LICENSE ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
|
|
||||||
|
|
||||||
install -Dm 0644 init/systemd/${TARGET}.service ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
install -Dm 0644 init/systemd/${TARGET}.service ${DESTDIR}/${SYSDDIR}/${TARGET}.service
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ${DESTDIR}usr/bin/${TARGET}
|
rm ${DESTDIR}${PREFIX}/bin/${TARGET}
|
||||||
rm ${DESTDIR}usr/share/licenses/${TARGET}/LICENSE
|
|
||||||
|
|
||||||
rm ${DESTDIR}${SYSDDIR}/${TARGET}.service
|
rm ${DESTDIR}/${SYSDDIR}/${TARGET}.service
|
||||||
|
@ -1,30 +1,24 @@
|
|||||||
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
||||||
pkgname=dwelling-files
|
pkgname=dwelling-files
|
||||||
pkgver=23.8.0
|
pkgver=23.24.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Arav's dwelling / Files"
|
pkgdesc="Arav's dwelling / Files"
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||||
url="https://git.arav.su/Arav/dwelling-files"
|
url="https://git.arav.su/Arav/dwelling-files"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
makedepends=('go>=1.16')
|
||||||
depends=()
|
|
||||||
makedepends=('go')
|
|
||||||
provides=('dwelling-files')
|
provides=('dwelling-files')
|
||||||
conflicts=('dwelling-files')
|
conflicts=('dwelling-files')
|
||||||
replaces=()
|
source=("${pkgver}.tar.gz::https://git.arav.su/Arav/dwelling-files/archive/${pkgver}.tar.gz")
|
||||||
backup=()
|
|
||||||
options=()
|
|
||||||
install=
|
|
||||||
source=('https://git.arav.su/Arav/dwelling-files/archive/23.8.0.tar.gz')
|
|
||||||
noextract=()
|
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
make DESTDIR="$pkgdir/"
|
export GOPATH="$srcdir"/gopath
|
||||||
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="$pkgdir" PREFIX="/usr" install
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user