summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67d3b4c2e348233aa2f32e5a727db511de4f8b9c (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
# Maintainer: Tanjiro Kamado <tanjiro.kamado at yandex dot com>
pkgname=timingeditor
_ccn=TimingEditor
pkgver=0.1
pkgrel=1
pkgdesc="The Timing Editor is a free tool to draw timing diagrams. "
arch=('x86_64')
url="http://timingeditor.sourceforge.net"
license=('GPL2')
depends=('wxgtk')
makedepends=()
source=("https://datapacket.dl.sourceforge.net/project/timingeditor/timingeditor/$pkgver/$_ccn-$pkgver-src.7z"
        "wx3.patch")
sha256sums=(
	'59c6f0c6c3c64394c187591d1eaefc97bdb440451935a16b2722ff91dea9952f'
	'95e4045e8bfa7422dc6eb7639d9c02b0961992b839cd7cd52d6a1f6e75a03b6b'
	)

prepare() {
	cd "$_ccn"
	patch -p1 -i "$srcdir/wx3.patch"
}

build() {
	cd "$_ccn"
	g++ *.cpp -DNDEBUG `wx-config --cxxflags --libs std,aui` -o $_ccn
}

package() {
	_base="$pkgdir/usr/bin"
	cd "$_ccn"
	mkdir -p "$_base/$_ccn"
	cp "$_ccn" "$_base/$_ccn/"
	rm -rf art/.svn
	cp -r art "$_base/$_ccn/"
	cd "$_base"
	ln -s "$_ccn/$_ccn" "$pkgname"
}