blob: bf1aaae84fc3a59bbaeeaece79a5683150810c21 (
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
|
# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=biblesync
pkgver=1.1.2
pkgrel=2
pkgdesc="multicast shared co-navigation library for Bible programs"
url="http://sourceforge.net/projects/gnomesword/files/BibleSync/1.1.2/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libutil-linux' 'gcc-libs')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/project/gnomesword/BibleSync/$pkgver/$pkgname-$pkgver.tar.gz")
validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697') # PKGBUILD Maintainer's key
sha512sums=('7725c8228e2dff79edaf065ff4d4816a6cf214d1d874817345cc4154142144bce479ca1ae871053886bff4f6610715a27bce81c25c2a636444d5873e93bfdc62')
build() {
whirlpoolsum=('ae89ac316cc70415ec4e0e458e7d8173b5a59741475bf1638f90c1614618058a664118bbb22d931e936fb7c4a1e8b4897f75a1d9cb7538ab0d8b8b7b96c81da6')
[[ "$(openssl dgst -r -whirlpool $pkgname-$pkgver.tar.gz | awk '{print $1}')" = ${whirlpoolsum} ]] && echo "Whirlpool checksum passed." || { echo "Whirlpool checksum failed!!" ; exit 1; } # This is an added security layer. If SHA512 for some unlikely reason fails, whirlpool will check and abort if it too fails to match.
cd $pkgname-$pkgver
[[ -d build ]] || mkdir -p build
cd build
cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=/usr/lib ..
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}
|