summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a666adbd61b1a97a29c5de0cec359df93c3ecfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Alessandro Zanatta <alessandro.zanatta.lav@gmail.com>
pkgname=pvs
pkgver=7.1.0
pkgrel=5
pkgdesc="Mechanized environment for formal specification and verification"
arch=('x86_64')
url="https://pvs.csl.sri.com"
provides=('pvs')
source=("https://pvs.csl.sri.com/downloads/${pkgname}${pkgver}-i${CARCH}-Linux-allegro.tgz"
'install-sh.patch'
)
sha256sums=('1056856ccd1702a957bb96e374f2f859f3fd41f384aa39db0c04a548121a26c1'
'45b179ce70aee169bff71cd128eae006dc95ea82d68e85ac90c1f7d2eba5b1c6')
depends=('emacs')
install='path.install'

prepare() {
    cd "$pkgname-$pkgver"
    patch --forward --strip=1 --input="${srcdir}/install-sh.patch"
}

build() {
    cd "$pkgname-$pkgver"
    ./install-sh
}

package() {
    # Install to opt to avoid naming conflicts (e.g. lvm2 conflicts with 'pvs')
    install -dm755 "${pkgdir}/opt/${pkgname}"
    cp -r "${srcdir}/${pkgname}-${pkgver}"/* "${pkgdir}/opt/${pkgname}"

    # Symlink license
    install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
    ln -s "/opt/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}