diff options
author | neoninteger | 2019-11-14 16:16:40 +1030 |
---|---|---|
committer | neoninteger | 2019-11-14 16:36:13 +1030 |
commit | 1da424bb0ed0ef0e4a574b809dd1c7fb53bf6420 (patch) | |
tree | 9ca2d0cb095158ed046db1d0e5e075c3f9d97bdf /PKGBUILD | |
parent | ac465e3053bdfc56c2d06987663e8fcad5f87aaf (diff) | |
download | aur-1da424bb0ed0ef0e4a574b809dd1c7fb53bf6420.tar.gz |
Add patch to update rusqlite version
This version of core-rs depends on rusqlite version 0.13.0, which
cannot be built on current versions of rust. I have added a patch to
update all instances of rusqlite to version 0.14.0, the first release
to contain the fix for newer compiler versions.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -17,10 +17,20 @@ _commithash="774fa361d021d9ef5237d32d09515ab7b2a32ad2" source=("https://github.com/turtl/core-rs/archive/${_commithash}.tar.gz" "config-client.yaml" - "config-server.yaml") + "config-server.yaml" + "rusqlite.patch") sha256sums=("71c1caf3aeb6245040abb0ee063b574dd6ece6314c60edabbe4299a11df49b68" "f5400e9c80c935915212e818f05eab8d3d542a54ed89e153c20a6c0fa00d8e1a" - "1b46d55e5f4753a494ceb005783db1c0c0908195b4f18a38a99118ecffae110a") + "1b46d55e5f4753a494ceb005783db1c0c0908195b4f18a38a99118ecffae110a" + "cd784b2b1de7bb0dba4d92623a525fc970627fd60b44b41d6f2d8e520770fce4") + +prepare() { + # This version of Turtl depends on an old version of rusqlite (v0.13.0) + # which can't be built on current versions of Rust. This patch updates the + # version of rusqlite used to v0.14.0, the first release to contain the + # fix that allows it to compile again. + patch -Np0 -i rusqlite.patch +} build() { export OPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 |