forked from L1L1/cardpeek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile-cardpeek.sh
37 lines (29 loc) · 885 Bytes
/
compile-cardpeek.sh
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
#!/usr/bin/env bash
# Created @ 13.01.2015 by Christian Mayer <http://fox21.at>
# You also need to install DBus:
# https://gist.github.com/TheFox/dc3f1b88757ba0a8a7a9
#1. Xcode 4.6.2 Command Line Tools.
#2. Homebrew (http://mxcl.github.io/homebrew/), used to install libgtk+, liblua and libssl.
#3. XQuartz (http://xquartz.macosforge.org/).
# Install 'gnome-icon-theme' for GTK+ 3.
brew install gnome-icon-theme
brew install openssl
brew link openssl --force
brew install glib
brew install gtk+3
brew install curl
brew install lua
# Check out the source.
pwd
# Create files for compiling.
autoreconf -fi
# './configure' may fail with
# Package 'xyz', required by 'abc', not found
# So we need to set the path for PkgConfig.
export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
./configure
# Compile.
make
# Alternatively you can install
# cardpeek into your system.
#make install