summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ab8b812a66a227cc3262f94449d1a88974e1e8c (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
# Maintainer: Michal Wojdyla < micwoj9292 at gmail dot com >
# Contributor: Guenther Starnberger <gst@sysfrog.org>
# Contributor: Moritz Lipp <mlq@pwmt.org>

pkgname=gpshell
pkgver=2.1.0
pkgrel=2
_commit=3832300cc5ade0439c2757ead1cf04e0e946e903
pkgdesc="gpshell GlobalPlatform command shell"
license=('GPL3')
arch=('i686' 'x86_64')
url="https://github.com/kaoh/globalplatform"
depends=('glibc' 'globalplatform')
makedepends=('pandoc' 'cmake')
source=(https://github.com/kaoh/globalplatform/archive/$_commit.zip)
md5sums=('da5b1e46ac40221406e51ddf8f82ef4e')

prepare() {
  cd globalplatform-$_commit/globalplatform/cmake_modules
  sed -e 's/libglobalplatform)/globalplatform)/g' -i FindGlobalPlatform.cmake

}
build() {
  cd globalplatform-$_commit/gpshell
  cmake . -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd globalplatform-$_commit/gpshell
  make DESTDIR=$pkgdir install
}