blob: 1570f0d9f510b9f0c0ffc6eb5950434cab1692dd (
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
|
# Maintainer: Dino Morelli <dino@ui3.info>
pkgname=hlint-bin
_githubname=hlint
pkgver=3.3
pkgrel=1
pkgdesc='Haskell source code suggestions. Packaged from upstream binary release.'
arch=('x86_64')
url="https://github.com/ndmitchell/hlint"
license=('BSD')
depends=('gmp' 'ncurses5-compat-libs')
conflicts=('hlint')
source=("${url}/releases/download/v${pkgver}/${_githubname}-${pkgver}-${arch}-linux.tar.gz")
sha256sums=('6013a1ea4f61e2046028c3709e4682877a7c054485eeb8ed2479f447856732a5')
# PKGBUILD functions
package() {
# Create dest directories
sharedir="${pkgdir}/usr/share/${_githubname}"
mkdir -p "$sharedir"
bindir="${pkgdir}/usr/bin"
mkdir "$bindir"
# Copy all source distribution files and move the binary into bin
cd "${srcdir}/${_githubname}-${pkgver}"
cp -r ./* "$sharedir"
mv "${sharedir}/${_githubname}" "$bindir"
}
|