diff options
author | Marco Scopesi | 2021-11-14 11:17:03 +0100 |
---|---|---|
committer | Marco Scopesi | 2021-11-14 11:17:03 +0100 |
commit | abe979a2030972502abbf2c966615068e7827b8c (patch) | |
tree | e898a3776e1440f8e8a3598b8de77c45a4c15103 | |
download | aur-abe979a2030972502abbf2c966615068e7827b8c.tar.gz |
v0.4.0-1
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 55 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..16f5e25794eb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = fortran-fpm + pkgdesc = A Fortran package manager and build system + pkgver = 0.4.0 + pkgrel = 1 + url = https://github.com/fortran-lang/fpm + arch = x86_64 + license = MIT + makedepends = gcc-fortran + depends = git + conflicts = fpm + source = https://github.com/fortran-lang/fpm/releases/download/v0.4.0/fpm-0.4.0.zip + source = https://github.com/fortran-lang/fpm/releases/download/v0.4.0/fpm-0.4.0.F90 + sha256sums = cd9b80b7f40d9cf357ca8d5d4fe289fd32dfccb729bad7d2a68f245e4cdd0045 + sha256sums = f69c18364e43ca1ef69e19f44c28e2929e30c1b33d78821db96da49f086963f9 + +pkgname = fortran-fpm diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..40762f8f6a15 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Ciappi <marco.scopesi@gmail.com> +pkgname=fortran-fpm +_pkgname=fpm +pkgver=0.4.0 +pkgrel=1 +epoch= +pkgdesc="A Fortran package manager and build system" +arch=('x86_64') +url="https://github.com/fortran-lang/fpm" +license=('MIT') +groups=() +depends=("git") +makedepends=("gcc-fortran") +checkdepends=() +optdepends=() +provides=() +conflicts=("fpm") +replaces=() +backup=() +options=() +install= +changelog= +source=("https://github.com/fortran-lang/fpm/releases/download/v$pkgver/$_pkgname-$pkgver.zip" + "https://github.com/fortran-lang/fpm/releases/download/v$pkgver/"$_pkgname-$pkgver.F90) +sha256sums=('cd9b80b7f40d9cf357ca8d5d4fe289fd32dfccb729bad7d2a68f245e4cdd0045' + 'f69c18364e43ca1ef69e19f44c28e2929e30c1b33d78821db96da49f086963f9') +noextract=() + +prepare() { + mkdir -p "$srcdir/$_pkgname-$pkgver/_bootstrap" + cd "$srcdir/$_pkgname-$pkgver" + + mv "$srcdir/$_pkgname-$pkgver.F90" "$srcdir/$_pkgname-$pkgver/_bootstrap/$_pkgname.F90" +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + gfortran -J _bootstrap/ _bootstrap/fpm.F90 -o _bootstrap/fpm +} + +check() { + cd "$srcdir/$_pkgname-$pkgver" + + _bootstrap/fpm test +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + _bootstrap/fpm install --flag "-g -fbacktrace -O3" --prefix "$pkgdir/usr" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |