Make pkgver automatic with expat

This commit is contained in:
Ella-0 2021-02-11 11:31:28 +00:00
parent c9a12c86c4
commit fb90077c58

View file

@ -5,7 +5,7 @@ ext="dev"
fetch() {
pkgver_r=$(echo $pkgver | tr '.' '_')
curl -L https://github.com/libexpat/libexpat/releases/download/R_2_2_10/$pkgname-$pkgver.tar.xz -o $pkgname-$pkgver.tar.gz
curl -L https://github.com/libexpat/libexpat/releases/download/R_$pkgver_r/$pkgname-$pkgver.tar.xz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}