Fix path mismatch when extracting sources

Since libsodium v1.0.20 (this version), the official
releases contain a libsodium-<version> directory in the
tarball instead of "libsodium-stable".
This commit is contained in:
Wolfgang Pupp 2024-06-18 13:12:15 +02:00
parent 10fd8a6f72
commit e9f7ad1b59
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
_realname=libsodium
pkgname="mingw-w64-${_realname}"
pkgver=1.0.20
pkgrel=1
pkgrel=2
pkgdesc="A modern, portable, easy to use crypto library (mingw-w64)"
arch=(any)
url="https://github.com/jedisct1/libsodium"
@ -27,7 +27,7 @@ build() {
for _arch in ${_architectures}; do
mkdir -p "${srcdir}"/build-${_arch} && cd "${srcdir}"/build-${_arch}
${_arch}-configure ../${_realname}-stable
${_arch}-configure ../${_realname}-${pkgver}
make
done
@ -45,6 +45,6 @@ package() {
rm -rf "${pkgdir}/usr/${_arch}/share"
done
install -Dm644 ${srcdir}/${_realname}-stable/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 ${srcdir}/${_realname}-${pkgver}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}