File tree 2 files changed +61
-0
lines changed
2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Maintainer: Maksim Bondarenkov <[email protected] >
2
+
3
+ _realname=wasmer
4
+ pkgbase=mingw-w64-${_realname}
5
+ pkgname=" ${MINGW_PACKAGE_PREFIX} -${_realname} "
6
+ pkgver=4.3.5
7
+ pkgrel=1
8
+ pkgdesc=" Universal Binaries Powered by WebAssembly (mingw-w64)"
9
+ arch=(' any' )
10
+ mingw_arch=(' ucrt64' ' clang64' )
11
+ url=" https://github.com/wasmerio/wasmer"
12
+ license=(' spdx:MIT' )
13
+ depends=(" ${MINGW_PACKAGE_PREFIX} -gcc-libs"
14
+ " ${MINGW_PACKAGE_PREFIX} -sqlite3" )
15
+ makedepends=(" ${MINGW_PACKAGE_PREFIX} -rust"
16
+ " ${MINGW_PACKAGE_PREFIX} -cmake"
17
+ " ${MINGW_PACKAGE_PREFIX} -pkgconf"
18
+ " ${MINGW_PACKAGE_PREFIX} -openssl"
19
+ ' git' )
20
+ source=(" git+${url} .git#tag=v${pkgver} "
21
+ " reproducible-builds.patch" )
22
+ sha256sums=(' 9d82eba29ea066ba762d0994b3986dcb1cf99deaefe851ccd33a12bb1a2dab37'
23
+ ' 7f08b41e0077a23b16eb2e9410ac953b293d1eeeaf1b83915a596ac437f81125' )
24
+
25
+ prepare () {
26
+ cd " ${_realname} "
27
+
28
+ patch -Np1 -i " ${srcdir} /reproducible-builds.patch"
29
+ cargo fetch --locked --target " $( rustc -vV | sed -n ' s/host: //p' ) "
30
+ }
31
+
32
+ build () {
33
+ cd " ${_realname} "
34
+
35
+ export WINAPI_NO_BUNDLED_LIBRARIES=1
36
+ export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
37
+ make ENABLE_SINGLEPASS=1 WASMER_INSTALL_PREFIX=${MINGW_PREFIX}
38
+ }
39
+
40
+ # tests require rustup binary
41
+ # check() {
42
+ # cd "$pkgname-$pkgver"
43
+ # make test-examples
44
+ # }
45
+
46
+ package () {
47
+ cd " ${_realname} "
48
+
49
+ make DESTDIR=" ${pkgdir}${MINGW_PREFIX} " install
50
+ }
Original file line number Diff line number Diff line change
1
+ --- a/lib/cli/build.rs
2
+ +++ b/lib/cli/build.rs
3
+ @@ -21,7 +21,7 @@ pub fn main() {
4
+ println!("cargo:rustc-env=WASMER_BUILD_GIT_HASH_SHORT=???????");
5
+ }
6
+
7
+ - let utc: DateTime<Utc> = Utc::now();
8
+ + let utc: DateTime<Utc> = DateTime::from_timestamp(0, 0).unwrap();
9
+ let date = utc.format("%Y-%m-%d").to_string();
10
+ println!("cargo:rustc-env=WASMER_BUILD_DATE={}", date);
11
+ }
You can’t perform that action at this time.
0 commit comments