blob: 9c3c73ed8dac984c87c6dd63e9959f4440c9431b (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Maintainer: Márcio Silva <coadde@lavabit.com>
pkgname=openipmi
_pkgname1=${pkgname::4}
_pkgname2=${pkgname:4}
_pkgname=${_pkgname1^}${_pkgname2^^}
pkgver=2.0.19
_pkgver=${pkgver::3}
pkgrel=2
pkgdesc="Allow access to platform information using Intelligent Platform Management Interface (${_pkgname2^^})"
arch=(
i686
x86_64
mips64el
)
url=http://sourceforge.net/projects/$pkgname/
depends=(
glib
net-snmp
#python2
swig
tcl
)
makedepends=(
dia
ghostscript-libre
texlive-bibtexextra
)
options=(!libtool)
license=(
BSD-new
GPL2
LGPL2.1
)
source=http://downloads.sourceforge.net/project/$pkgname/$_pkgname' '$_pkgver' 'Library/$_pkgname-$pkgver.tar.gz
sha512sums=ee95eb64b7cde3f22c8444a5f8e3172808b0bb9a3a7034c1302c5f568c1cc0852a44ccc836924267b5f9901f7a8a3f4c66272cc0b663aa55689d7529841217cb
prepare() {
cd $srcdir/$_pkgname-$pkgver
# remove Open Source term
sed -i 's|Open Source / ||;
s|open source / ||;
s|Open Source|Free Software|;
s|open source|free software|;
' $(grep -ril 'open source')
#sed -i 's|OpenSource / ||;
# s|opensource / ||;
# s|OpenSource|FreeSoftware|;
# s|opensource|freesoftware|;
# ' $(grep -ril opensource)
# remove Linux term
sed -i '/, Linux/ s|Linux|GNU/Linux|;
/And Linux/ s|Linux|GNU/Linux|;
/and Linux/ s|Linux|GNU/Linux|;
/For Linux/ s|Linux|GNU/Linux|;
/for Linux/ s|Linux|GNU/Linux|;
/Like Linux/ s|Linux|GNU/Linux|;
/like Linux/ s|Linux|GNU/Linux|;
/Linux,/ s|Linux|GNU/Linux|;
/Linux and/ s|Linux|GNU/Linux|;
/Linux distribution/ s|Linux|GNU/Linux|;
/Linux machine/ s|Linux|GNU/Linux|;
/Linux operating/ s|Linux|GNU/Linux|;
/Linux OS/ s|Linux|GNU/Linux|;
/Linux specific/ s|Linux|GNU/Linux|;
/Linux system/ s|Linux|GNU/Linux|;
/Under Linux/ s|Linux|GNU/Linux|;
/under Linux/ s|Linux|GNU/Linux|;
/On Linux/ s|Linux|GNU/Linux|;
/on Linux/ s|Linux|GNU/Linux|;
s|GNU/GNU|GNU|;
s|GNU/Linux kernel|Linux kernel|;
s|GNU/Linux specific kernel|Linux specific kernel|;
' $(grep -rl Linux)
}
build() {
cd $srcdir/$_pkgname-$pkgver
setarch $CARCH ./configure --prefix=/usr\
--disable-static
setarch $CARCH make
}
package() {
cd $srcdir/$_pkgname-$pkgver
install -d $pkgdir/usr/bin
setarch $CARCH make DESTDIR=$pkgdir install
}
# vim:set ts=2 sw=2 et:
|