Skip to content

Commit 80f3111

Browse files
author
gabriel pettier
committed
start a gnutls recipe
1 parent f139689 commit 80f3111

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

distribute.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ function get_directory() {
139139
*.tgz) directory=$(basename $1 .tgz) ;;
140140
*.tar.bz2) directory=$(basename $1 .tar.bz2) ;;
141141
*.tbz2) directory=$(basename $1 .tbz2) ;;
142+
*.tar.xz) directory=$(basename $1 .tar.xz) ;;
142143
*.zip) directory=$(basename $1 .zip) ;;
143144
*)
144145
error "Unknown file extension $1"

recipes/gnutls/recipe.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
VERSION_gnutls=3.3.16
4+
URL_gnutls=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-${VERSION_gnutls}.tar.xz
5+
MD5_gnutls=
6+
BUILD_gnutls=$BUILD_PATH/gnutls/$(get_directory $URL_gnutls)
7+
RECIPE_gnutls=$RECIPES_PATH/gnutls
8+
9+
function prebuild_gnutls() {
10+
true
11+
}
12+
13+
function build_gnutls() {
14+
cd $BUILD_gnutls
15+
bash
16+
push_arm
17+
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_gnutls/build/lib
18+
try make install
19+
pop_arm
20+
}
21+
22+
function postbuild_gnutls() {
23+
true
24+
}

0 commit comments

Comments
 (0)