forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
33 lines (29 loc) · 1012 Bytes
/
Copy pathPKGBUILD
File metadata and controls
33 lines (29 loc) · 1012 Bytes
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
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=expat
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.1.0
pkgrel=3
pkgdesc="An XML parser library (mingw-w64)"
arch=('any')
url="http://expat.sourceforge.net"
license=("custom")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
options=('strip' 'staticlibs')
source=("http://downloads.sourceforge.net/expat/expat-${pkgver}.tar.gz")
md5sums=('dd7dab7a5fea97d2a6a43f511449b7cd')
build() {
mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${CARCH}"
cd "${srcdir}/${pkgname}-${pkgver}-build-${CARCH}"
"${srcdir}"/expat-${pkgver}/configure \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST} \
--enable-shared --enable-static
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}-build-${CARCH}"
make DESTDIR="$pkgdir" install
mv "${pkgdir}${MINGW_PREFIX}/bin/xmlwf" "${pkgdir}${MINGW_PREFIX}/bin/xmlwf.exe"
}