global: Install license. Fix building shared modules. Fix optional dependencies.

This commit is contained in:
Alexpux
2015-02-23 00:00:59 +03:00
parent 1904be2733
commit ee7cc4439c

View File

@@ -8,22 +8,30 @@ arch=("i686" "x86_64")
url="https://www.gnu.org/software/global/"
license=("GPL3")
depends=("libltdl")
optdepends=("ctags" "python-pygments2" "python-pygments3")
optdepends=("ctags" "python2-pygments" "python3-pygments")
makedepends=("ncurses-devel")
options=(libtool !emptydirs)
source=("https://ftp.gnu.org/gnu/global/${pkgname}-${pkgver}.tar.gz")
sha1sums=("6b73c0b3c7eea025c8004f8d82d836f2021d0c9e")
prepare() {
cd "${pkgname}-${pkgver}"
autoreconf -fiv
}
build () {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr \
--build=${CHOST} \
--host=${CHOST} \
--with-exuberant-ctags
--with-exuberant-ctags \
--enable-shared \
--disable-static
make
}
package () {
cd "${pkgname}-${pkgver}"
make prefix="${pkgdir}/usr" install
install -Dm0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}