author | Massimiliano Torromeo
<mtorromeo@archlinux.org> 2014-11-19 14:26:41 UTC |
committer | Massimiliano Torromeo
<mtorromeo@archlinux.org> 2014-11-19 14:26:41 UTC |
parent | e550a68f2bc8ab3b1c03839f1e6b9dfaff723940 |
PKGBUILD | +7 | -2 |
diff --git a/PKGBUILD b/PKGBUILD index 1e14a7c..4276fb6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,12 +13,17 @@ source=("http://www.geocities.jp/kosako3/oniguruma/archive/onig-$pkgver.tar.gz") sha256sums=('9f49ae7819a5f47e25449d0e4b010d479f7868a24a7b9884b47041b49a76438a') build() { - cd "$srcdir/onig-$pkgver" + cd "$srcdir"/onig-$pkgver ./configure --prefix=/usr make } package() { - cd "$srcdir/onig-$pkgver" + cd "$srcdir"/onig-$pkgver make DESTDIR="$pkgdir" install + install -dm755 "$pkgdir"/usr/share/doc + cp -r doc "$pkgdir"/usr/share/doc/$pkgname + for licfile in COPYING INSTALL; do + install -Dm644 $licfile "$pkgdir"/usr/share/licenses/$pkgname/$licfile + done }