1
0

Make use of $pkgver in PKGBUILD. Pass VERSION var to Makefile.

This commit is contained in:
Alexander Andreev 2023-05-02 17:36:04 +04:00
parent eb6b0c68b3
commit d1253242d4
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -18,7 +18,7 @@ replaces=()
backup=('etc/dwelling/radio.yaml' 'etc/dwelling/radio.vars.liq') backup=('etc/dwelling/radio.yaml' 'etc/dwelling/radio.vars.liq')
options=() options=()
install= install=
source=('https://git.arav.su/Arav/dwelling-radio/archive/23.10.1.tar.gz') source=("${pkgver}.tar.gz::https://git.arav.su/Arav/dwelling-radio/archive/v${pkgver}.tar.gz")
noextract=() noextract=()
md5sums=('SKIP') md5sums=('SKIP')
@ -31,10 +31,10 @@ build() {
make DESTDIR="$pkgdir" install-jade make DESTDIR="$pkgdir" install-jade
fi fi
make DESTDIR="$pkgdir" PREFIX="/usr" make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr"
} }
package() { package() {
cd "$srcdir/$pkgname" cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" PREFIX="/usr" install make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
} }