summaryrefslogtreecommitdiff
path: root/extra/libguess/PKGBUILD
blob: f67516182a85a15eade10141adec4bb6fd40daa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 215720 2014-06-30 10:39:24Z bisson $

# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Kemka Andrey <dr.andru@gmail.com>

pkgname=libguess
pkgver=1.1
pkgrel=3
pkgdesc='High-speed character set detection library'
url='http://atheme.org/projects/libguess.html'
license=('custom')
depends=('libmowgli')
arch=('i686' 'x86_64')
source=("http://distfiles.atheme.org/libguess-${pkgver}.tar.gz")
sha1sums=('2760e63b71497506208f9d6269ec52f83bfc6f0b')

prepare() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	sed 's/libmowgli >= 0.9.50/libmowgli-2/g' -i configure
}

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -D COPYING "${pkgdir}"/usr/share/licenses/libguess/COPYING
}