Commit 431eace4824e0ed6e4c2d9fe4795999a14b3583c
1 parent
3ac81355
Exists in
master
and in
1 other branch
Adding windows MSYS2 package definition file.
Showing
1 changed file
with
40 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,40 @@ | @@ -0,0 +1,40 @@ | ||
| 1 | +# Maintainer: Perry Werneck <perry.werneck@gmail.com> | ||
| 2 | + | ||
| 3 | +pkgname=${MINGW_PACKAGE_PREFIX}-libv3270 | ||
| 4 | + | ||
| 5 | +pkgver=5.2 | ||
| 6 | +pkgrel=1 | ||
| 7 | +pkgdesc="3270 Virtual Terminal for GTK" | ||
| 8 | +url="https://portal.softwarepublico.gov.br/social/pw3270/" | ||
| 9 | +arch=(i686 x86_64) | ||
| 10 | +license=(GPL) | ||
| 11 | +depends=(${MINGW_PACKAGE_PREFIX}-lib3270 ${MINGW_PACKAGE_PREFIX}-gtk3) | ||
| 12 | +makedepends=(autoconf automake make openssl ${MINGW_PACKAGE_PREFIX}-lib3270 ${MINGW_PACKAGE_PREFIX}-gtk3) | ||
| 13 | +checkdepends=() | ||
| 14 | + | ||
| 15 | +#groups=(gnome) | ||
| 16 | + | ||
| 17 | +source=(libv3270-$pkgver.tar.xz) | ||
| 18 | +sha256sums=('SKIP') | ||
| 19 | + | ||
| 20 | +provides=($pkgname) | ||
| 21 | +conflicts=($pkgname) | ||
| 22 | + | ||
| 23 | +prepare() { | ||
| 24 | + cd libv3270-$pkgver | ||
| 25 | + NOCONFIGURE=1 ./autogen.sh | ||
| 26 | + ./configure --prefix=$MINGW_PREFIX | ||
| 27 | +} | ||
| 28 | + | ||
| 29 | +build() { | ||
| 30 | + cd libv3270-$pkgver | ||
| 31 | + make all | ||
| 32 | +} | ||
| 33 | + | ||
| 34 | +package() { | ||
| 35 | + cd libv3270-$pkgver | ||
| 36 | + DESTDIR="$pkgdir" make install-dev | ||
| 37 | + install .bin/Release/libv3270.dll $MINGW_PREFIX/bin | ||
| 38 | + dlltool --dllname libv3270.dll --input-def .bin/Release/libv3270.def --output-lib $MINGW_PREFIX/lib/libv3270.a | ||
| 39 | +} | ||
| 40 | + |