diff --git a/lfs/expect-5.45.4.PKGBUILD b/lfs/expect-5.45.4.PKGBUILD index 7ae3654..7d92965 100644 --- a/lfs/expect-5.45.4.PKGBUILD +++ b/lfs/expect-5.45.4.PKGBUILD @@ -3,11 +3,12 @@ pkgver=5.45.4 pkgdesc='A tool for automating interactive applications' homepage='https://www.nist.gov/el/msid/expect.cfm' license=(custom) -sources=("${pkgname}${pkgver}.tar.gz" - "expect-5.45.4-gcc14-1.patch" +_archive=${pkgname}${pkgver} +sources=("${_archive}.tar.gz" + "${pkgname}-${pkgver}-gcc14-1.patch" ) -urls=("https://prdownloads.sourceforge.net/expect/expect${pkgver}.tar.gz" - "https://www.linuxfromscratch.org/patches/lfs/12.2/expect-5.45.4-gcc14-1.patch" +urls=("https://prdownloads.sourceforge.net/expect/${sources[0]}" + "https://www.linuxfromscratch.org/patches/lfs/12.2/${sources[1]}" ) md5sums=("00fce8de158422f5ccd2666512329bd2" "0b8b5ac411d011263ad40b0664c669f0" @@ -38,7 +39,7 @@ src_check() { src_install() { make DESTDIR="$pkgdir" install - ln -svf expect5.45.4/libexpect5.45.4.so "${pkgdir}/usr/lib" + ln -svf ${pkgname}${pkgver}/libexpect${pkgver}.so "${pkgdir}/usr/lib" install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README" # avoid file conflict with the more powerful mkpasswd from the whois package