46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=expect
|
|
pkgver=5.45.4
|
|
pkgrel=02
|
|
pkgdesc='A tool for automating interactive applications'
|
|
arch=(x86_64)
|
|
url='https://www.nist.gov/el/msid/expect.cfm'
|
|
depends=(tcl)
|
|
source=(https://downloads.sourceforge.net/project/expect/Expect/$pkgver/expect${pkgver}.tar.gz)
|
|
|
|
# Warning on test causes failure without these flags
|
|
prepare() {
|
|
cd expect${pkgver}
|
|
CFLAGS=${CFLAGS/-Werror=format-security/}
|
|
CXXFLAGS=${CXXFLAGS/-Werror=format-security/}
|
|
}
|
|
|
|
build() {
|
|
cd expect${pkgver}
|
|
./configure --prefix=/usr --mandir=/usr/share/man
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd expect${pkgver}
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd expect${pkgver}
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=(custom)
|
|
|
|
sha256sums=(49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34) # expect5.45.4.tar.gz
|