aboutsummaryrefslogblamecommitdiffstats
path: root/file2key-libpassphrase/PKGBUILD
blob: dc2691bf9840c6997e73dc64448f31135d1898e7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                                             

                              
            









                                                                                                   
                                                                             













                                                                        
                                            
 
# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>

pkgname=file2key-libpassphrase
pkgver=3.1.1
pkgrel=1
pkgdesc="A simple command that generates a key from a file and a passphrase, libpassphrase version"
arch=(i686 x86_64)
url="https://github.com/maandree/file2key"
license=('custom:ISC')
conflicts=(file2key)
provides=(file2key)
depends=(glibc libkeccak libpassphrase)
makedepends=(make coreutils gcc glibc libkeccak libpassphrase)
source=(file2key-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=(26e7eb716b46df4dabedbeecc596c0ae8ecc351be3ed6f1e13883e1c0bfe14e6)

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

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

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