Skip to content

Instantly share code, notes, and snippets.

@masakichi
Last active September 28, 2018 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masakichi/257db9a3767a318410ced7b2627e7b62 to your computer and use it in GitHub Desktop.
Save masakichi/257db9a3767a318410ced7b2627e7b62 to your computer and use it in GitHub Desktop.
From 9631cd27f0475fa705aa14c2b8762f169a98d017 Mon Sep 17 00:00:00 2001
From: Gimo <self@gimo.me>
Date: Fri, 28 Sep 2018 15:19:03 +0900
Subject: [PATCH] Fix libexecdir path
---
.SRCINFO | 2 +-
PKGBUILD | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 41af9f3..0cfbf71 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mecab
pkgdesc = Yet another part-of-speech and morphological analyzer.
pkgver = 0.996
- pkgrel = 5
+ pkgrel = 6
url = https://taku910.github.io/mecab
install = mecab.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 86df037..9cced6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Max Bruckner (FSMaxB)
+# Contributor: Gimo <self@gimo.me>
pkgname=mecab
pkgver=0.996
-pkgrel=5
+pkgrel=6
pkgdesc="Yet another part-of-speech and morphological analyzer."
arch=('i686' 'x86_64')
url="https://taku910.github.io/mecab"
@@ -10,6 +11,12 @@ install=mecab.install
source=("$pkgname-$pkgver.tar.gz::https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE")
sha512sums=('aca6d16f411b9ba9b6687242246aeb28ede6d6c6a9122d4a32da9d8e76e79b5f4af2c8e3b13ad9462b34e9d2994cbd9bbbedebac45609684db9b703da999577f')
+prepare() {
+ cd "$pkgname-$pkgver"
+ # change hardcodeed mecab libexecdir
+ sed -i 's!prefix@/libexec!@libexecdir@!g' mecab-config.in
+}
+
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-charset=utf-8
--
2.19.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment