diff options
author | amesgen | 2020-01-13 05:33:30 +0100 |
---|---|---|
committer | amesgen | 2020-01-13 05:33:30 +0100 |
commit | 8e28c448e528b144cad6bab20da658b1d6ffc109 (patch) | |
tree | f412a69940d85c34f8db3096e41b15a2cdaffe2e /PKGBUILD | |
download | aur-8e28c448e528b144cad6bab20da658b1d6ffc109.tar.gz |
created package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a907279c42fa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: amesgen <amesgen AT amesgen DOT de> + +pkgname=ormolu +pkgver=0.0.3.0 +pkgrel=1 +pkgdesc="A formatter for Haskell source code" +arch=('i686' 'x86_64') +url="https://github.com/tweag/${pkgname}" +license=('custom') +makedepends=('stack') +source=("${url}/archive/${pkgver}.tar.gz" + 'stack.yaml') +sha256sums=('59eccef466353f85ab40cd76c1dd5a7e87598e27c7db798a741c5c8aba1d635b' + 'b924a2de0804fefa9b513cd7e790fb41e0b178742ee7e78c82e3ae64deb26a76') + +prepare() { + mv stack.yaml "${pkgname}-${pkgver}/" +} + +build() { + cd "${pkgname}-${pkgver}" + stack build +} + +package() { + cd "${pkgname}-${pkgver}" + stack install --local-bin-path "${pkgdir}/usr/bin" + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +} |