aboutsummaryrefslogtreecommitdiffstats
path: root/file2key-libpassphrase/PKGBUILD
blob: 8ad79f5c37885634589770a245a54e3c8d22efd3 (plain) (blame)
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: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>

pkgname=file2key-libpassphrase
pkgver=3.1.1
pkgrel=2
pkgdesc="A simple command that generates a key from a file and a passphrase, libpassphrase version"
arch=(i686 x86_64)
url="https://codeberg.org/maandree/file2key"
license=('custom:ISC')
conflicts=(file2key)
provides=(file2key)
depends=(libkeccak libpassphrase)
makedepends=(libkeccak libpassphrase)
source=(file2key-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=(4b3d9ea6b35eab38a76dac7f3560abe95ae271045104d2b96f568931b2b0a8aa)

prepare() {
  cd "${srcdir}/file2key"
  sed '/CPPFLAGS/s/$/ -DWITH_LIBPASSPHRASE/' < config.mk > config.mk.tmp
  sed '/LDFLAGS/s/$/ -lpassphrase/' < config.mk.tmp > config.mk
}

build() {
  cd "$srcdir/file2key"
  make PREFIX=/usr
}

package() {
  cd "$srcdir/file2key"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}