blob: 997c09b4d7a8d7384b161dd310110410f4d37255 (
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
|
# Maintainer: malet
pkgname=dafny-bin
_pkgname=dafny
pkgver=4.9.1
pkgrel=1
pkgdesc="Dafny is a verification-aware programming language"
arch=('x86_64')
url="https://github.com/dafny-lang/dafny"
license=('MIT')
provides=('dafny')
conflicts=('dafny')
depends=('dotnet-runtime')
options=('staticlibs')
source=(dafny-${pkgver}.zip::https://github.com/dafny-lang/dafny/releases/download/v${pkgver}/dafny-${pkgver}-x64-ubuntu-20.04.zip)
sha256sums=('697ee703b39414b3904dc8c132e51481982f52205c1658f3374d313a284d43eb')
package() {
cd ${_pkgname}
# Creating directories
install -dm755 $pkgdir/opt/dafny
install -dm755 $pkgdir/usr/bin
# Install binary
install -Dm755 "${srcdir}"/dafny/dafny "${pkgdir}"/opt/dafny/dafny
# Copy dependencies
cp -r "${srcdir}"/dafny/* "${pkgdir}"/opt/dafny/
ln -s /opt/dafny/dafny "${pkgdir}"/usr/bin/dafny
}
|