[go: nahoru, domu]

Skip to content

Commit

Permalink
Add how to make ubuntu package.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsky committed Dec 8, 2012
1 parent 8f17740 commit 7ef4339
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ubuntu/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.deb
mecab*
php-mecab*
46 changes: 46 additions & 0 deletions packages/ubuntu/HOWTO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
How to make Ubuntu package of php-mecab
=======================================

REQUIREMENTS
------------

* build-essential
* devscripts
* dh-make
* dh-make-php
* libmecab-dev
* mecab
* php5-cli
* php5-dev
* xsltproc


PREPARE
-------

You will have to discover the PEAR channel.

$ `sudo pear channel-discover pecl.opendogs.org`


MAKE A PACKAGE
--------------

1. $ `cd php-mecab/mecab`
2. $ `pear package package.xml`
3. $ `mv mecab-x.y.z.tgz ../packages/debian/`
4. $ `cd ../packages/debian`
5. $ `dh-make-pecl --phpversion 5 mecab-x.y.z.tgz`
6. $ `cd php-mecab-x.y.z`
7. Edit *debian/control*.
* Add `mecab` and `libmecab-dev` to **Build-Depends**.
* Add `libmecab1` to **Depends**.
8. $ `debuild -uc -us` *[without GPG signing]*


INSTALL
-------

The .deb file will be generated at *php-mecab/packages/debian*.

$ `sudo dpkg -i php5-mecab_x.y.z-1_{amd64,i386}.deb`
17 changes: 17 additions & 0 deletions packages/ubuntu/debian-control.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- debian/control.orig
+++ debian/control
@@ -2,12 +2,12 @@
Section: web
Priority: optional
Maintainer: Ryusuke SEKIYAMA <rsky0711@gmail.com>
-Build-Depends: debhelper (>= 7), po-debconf, xsltproc , php5-dev
+Build-Depends: debhelper (>= 7), po-debconf, xsltproc , php5-dev, mecab, libmecab-dev
Standards-Version: 3.9.1

Package: php5-mecab
Architecture: any
-Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}, libmecab1
Description: mecab module for PHP 5
The PHP bindings of the MeCab.
.

0 comments on commit 7ef4339

Please sign in to comment.