Version up. Removed unneeded fields. Specified min ver of Go. Set .tar.gz name from $pkgver. Added export GOPATH to make a different gopath. Pass a version to a Makefile.
This commit is contained in:
parent
0007c5e21b
commit
4ffa2d07fa
@ -1,31 +1,28 @@
|
|||||||
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
|
||||||
pkgname=dwelling-upload
|
pkgname=dwelling-upload
|
||||||
pkgver=23.10.0
|
pkgver=23.17.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Arav's Dwelling / Upload"
|
pkgdesc="Arav's Dwelling / Upload"
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||||
url="https://git.arav.su/Arav/dwelling-upload"
|
url="https://git.arav.su/Arav/dwelling-upload"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
makedepends=('go>=1.17')
|
||||||
depends=()
|
|
||||||
makedepends=('go')
|
|
||||||
provides=('dwelling-upload')
|
provides=('dwelling-upload')
|
||||||
conflicts=('dwelling-upload')
|
conflicts=('dwelling-upload')
|
||||||
replaces=()
|
|
||||||
backup=('etc/dwelling/upload.yaml')
|
backup=('etc/dwelling/upload.yaml')
|
||||||
options=()
|
source=('https://git.arav.top/Arav/dwelling-upload/archive/v${pkgver}.tar.gz')
|
||||||
install=
|
|
||||||
source=('https://git.arav.top/Arav/dwelling-upload/archive/23.10.0.tar.gz')
|
|
||||||
noextract=()
|
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
|
|
||||||
|
export GOPATH="$srcdir"/gopath
|
||||||
|
|
||||||
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
|
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
|
||||||
make DESTDIR="$pkgdir/" install-jade
|
make VERSION=$pkgver DESTDIR="$pkgdir/" install-jade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make DESTDIR="$pkgdir/"
|
make VERSION=$pkgver DESTDIR="$pkgdir/"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
Loading…
Reference in New Issue
Block a user