blob: 9d0d8a178ce5251f9a483fc42e9af4ec66f68119 (
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
|
# Maintainer: Antonio Cervone <ant dot cervone at gmail dot com>
pkgname=freesteam
pkgver=2.1
pkgrel=2
pkgdesc="Open source steam property routines in C"
arch=('i686' 'x86_64')
url="http://freesteam.sourceforge.net/"
license=('GPL')
depends=('gsl' 'gtk2' 'python')
makedepends=('scons')
source=(
"https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
"python3.patch")
sha256sums=(
'5993bb3aa8a121256e43363c7c2b66facc53142e0f5ed9e4f5daa492a1a3e976'
'a0411f2987db9eb9ea052160041638e86aa0a4b53f541c472881001d8ab0877f')
prepare() {
# fix line endings otherwise patch fails
find ${pkgname}-${pkgver} -name \*.py -exec dos2unix {} \;
patch -p0 < python3.patch
}
build() {
cd ${pkgname}-${pkgver}
scons INSTALL_PREFIX=/usr gtk
}
package() {
cd ${pkgname}-${pkgver}
scons INSTALL_PREFIX=/usr INSTALL_ROOT="$pkgdir" install
install -D -m644 $srcdir/${pkgname}-${pkgver}/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|