blob: 76fa7f846f4580bce578539ecd99a3d86c1bb389 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=tc-play
pkgver=2.0
pkgrel=0
pkgdesc="Free and simple TrueCrypt Implementation based on dm-crypt"
url="https://github.com/bwalex/tc-play"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev libgcrypt-dev cmake lvm2-dev util-linux-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="tc-play-$pkgver.tar.gz::https://github.com/bwalex/tc-play/archive/v$pkgver.tar.gz
libsuffix.patch"
_builddir="$srcdir"/tc-play-$pkgver
prepare() {
local i
mkdir -p "$_builddir"/objdir
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"/objdir
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
|| return 1
make || return 1
}
package() {
cd "$_builddir"/objdir
make install DESTDIR="$pkgdir" || return 1
}
md5sums="c0c6638f078d946b58d6108518e54e3c tc-play-2.0.tar.gz
0d44056b83c9a0db59d0eec530b878e3 libsuffix.patch"
sha256sums="0e17890f37e862746364b10bad62bbd9f3e2b2811a24b07df12eff266534e42d tc-play-2.0.tar.gz
4891905a1650df46004820dddd00f53b7d9790cf56410438e737e19e9b337cf4 libsuffix.patch"
sha512sums="17408b2a664eb6822c77ede4f38ca67cdf643512014619d830a2c024bb8971811eded4edd65f6398d6112a3b57cd11a5b414357878c817c9cc2aac9d851946d7 tc-play-2.0.tar.gz
4e1c8566f1dee3a8fdeb29f1ac0164b69ff0095cc13ceb339aeceea4b7db63abcea11579ca4613cd9998550cba44cbf0ac08a5386131db9cbd3a663e9bd476f6 libsuffix.patch"
|