summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e075a5bd7a232b5a0b47a4d843c9ace059af19d7 (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
# Maintainer: eolianoe <eolianoe [at] gmail [DoT] com>

pkgname=findent
pkgver=3.1.1
pkgrel=1
pkgdesc="Indents and beautifies Fortran source"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/findent/"
license=('custom:BSD')
depends=('bash')
source=("https://datapacket.dl.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('b22ab3e0675abce73fef50c4805189e60ad84f5df0f64c2db2ff929ac8e83419')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make install DESTDIR="${pkgdir}"
  install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/LICENCE \
    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENCE
}