blob: 12e01819871209515b08347cdf326285f1410104 (
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
|
# Maintainer: Cooper Pierce <cppierce@andrew.cmu.edu>
pkgname=smlfmt
pkgver=1.0.0
pkgrel=1
pkgdesc="An auto-formatter for Standard ML "
url="https://github.com/shwestrick/smlfmt"
arch=('x86_64')
license=(MIT)
makedepends=('mlton')
source=("$pkgname-$pkgver.tgz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('0c575c98db4a434eaddb10dd3d813f75')
build() {
cd "$pkgname-$pkgver"
make
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "smlfmt" "$pkgdir/usr/bin/smlfmt"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
check() {
cd "$pkgname-$pkgver"
# Test case runner relies on finding the git root
git init
cd test
./runall
}
|