updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / wxstedit / PKGBUILD
bloba68d8dfb4c5e80e3d7c36c617a856abe585361aa
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=wxStEdit
4 pkgname=wxstedit
5 pkgver=1.2.5
6 pkgrel=1
7 pkgdesc="A library and sample program for the wxWidgets's wxStyledTextCtrl wrapper around the Scintilla text editor widget."
8 arch=(i686 x86_64)
9 url="http://wxcode.sourceforge.net/showcomp.php?name=wxStEdit"
10 license=('custom:wxWindows')
11 depends=('wxgtk')
12 source=("http://downloads.sourceforge.net/project/wxcode/Components/$_pkg/$pkgname-$pkgver.tar.gz")
13 md5sums=('8ba50bdd40b1a0b43643de8f40e0ea0d')
15 build() {
16   # creating needed setup.h header
17   cd "$srcdir/$pkgname/include/wx/stedit"
18   cp setup0.h setup.h && cd ../../..
20   ./configure --prefix=/usr
21   make
24 package() {
25   cd "$srcdir/$pkgname"
27   make DESTDIR="$pkgdir/" install
29   # install sample application
30   install -Dm755 "samples/stedit/$pkgname" \
31                  "$pkgdir/usr/bin/$pkgname"
33   # install custom wxWindows license file
34   mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
35   ln -s /usr/share/licenses/wxgtk/LICENSE \
36         "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
39 # vim:set ts=2 sw=2 et: