summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Peukert2020-05-30 11:28:14 +0200
committerDaniel Peukert2020-05-30 11:28:14 +0200
commit4d09646a771e66b1c9b43bfa1f5354991c094a58 (patch)
treeb9cdbdd7a83410ce6d925ee8e1b177a1aec69ac5
parent83d5bac109111c4ea3f4680a6f34f4ff158a701b (diff)
downloadaur-4d09646a771e66b1c9b43bfa1f5354991c094a58.tar.gz
Patched ocaml-zed to include Set_pos and Insert_str
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD22
2 files changed, 23 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e43431c7c2e..90f07588acb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ocaml-zed
pkgdesc = Abstract engine for text edition in OCaml
pkgver = 3.0.1
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/ocaml-community/zed
arch = x86_64
arch = i686
@@ -16,7 +16,11 @@ pkgbase = ocaml-zed
depends = ocaml-react
depends = ocaml-charinfo_width>=1.1.0
options = !strip
- source = ocaml-zed-3.0.1-2.tar.gz::https://github.com/ocaml-community/zed/archive/3.0.1.tar.gz
+ source = ocaml-zed-3.0.1-3.tar.gz::https://github.com/ocaml-community/zed/archive/3.0.1.tar.gz
+ source = ocaml-zed-3.0.1-3-add-set_pos.diff::https://github.com/ocaml-community/zed/commit/ccaf2d790231844e8affd5d55e051748eb27a68b.diff
+ source = ocaml-zed-3.0.1-3-add-insert_str.diff::https://github.com/ocaml-community/zed/commit/79b4b9b0d31c09f4fb58ed44713570752b7d994d.diff
sha256sums = 35eefce0e35b10894bbae6c903758f3ab25363aadd605fb7dcdbc53aac5580f7
+ sha256sums = 209a2ccace5aa227148f7236c685d1cf7e2bd6735979497cef986b1d82b06379
+ sha256sums = d9da851b0ce94685229a53c43ee9c736dd39a1a3b20005d15123c21127836344
pkgname = ocaml-zed
diff --git a/PKGBUILD b/PKGBUILD
index bb7b40b8f04..a305465b505 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
_projectname='zed'
pkgname="ocaml-$_projectname"
pkgver='3.0.1'
-pkgrel='2'
+pkgrel='3'
pkgdesc='Abstract engine for text edition in OCaml'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/ocaml-community/$_projectname"
@@ -13,19 +13,31 @@ license=('BSD')
depends=('ocaml>=4.02.3' 'ocaml-camomile>=1.0.1' 'ocaml-react' 'ocaml-charinfo_width>=1.1.0')
makedepends=('dune>=1.1.0')
options=('!strip')
-source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz")
-sha256sums=('35eefce0e35b10894bbae6c903758f3ab25363aadd605fb7dcdbc53aac5580f7')
+source=(
+ "$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz"
+ "$pkgname-$pkgver-$pkgrel-add-set_pos.diff::$url/commit/ccaf2d790231844e8affd5d55e051748eb27a68b.diff"
+ "$pkgname-$pkgver-$pkgrel-add-insert_str.diff::$url/commit/79b4b9b0d31c09f4fb58ed44713570752b7d994d.diff"
+)
+sha256sums=('35eefce0e35b10894bbae6c903758f3ab25363aadd605fb7dcdbc53aac5580f7'
+ '209a2ccace5aa227148f7236c685d1cf7e2bd6735979497cef986b1d82b06379'
+ 'd9da851b0ce94685229a53c43ee9c736dd39a1a3b20005d15123c21127836344')
_sourcedirectory="$_projectname-$pkgver"
+prepare() {
+ cd "$srcdir/$_sourcedirectory/"
+ patch --forward -p1 < "$srcdir/$pkgname-$pkgver-$pkgrel-add-set_pos.diff"
+ patch --forward -p1 < "$srcdir/$pkgname-$pkgver-$pkgrel-add-insert_str.diff"
+}
+
build() {
cd "$srcdir/$_sourcedirectory/"
- dune build -p "$_projectname" --verbose
+ dune build --release --verbose
}
package() {
cd "$srcdir/$_sourcedirectory/"
- DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml'
+ DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml' --release --verbose
install -dm755 "$pkgdir/usr/share/doc/$pkgname"
mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/"