summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 981d55f7726eda37e4ecf93732c979261c952145 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Yunhui Fu <yhfudev at gmail dot com>

pkgname=libucd-git
pkgver=r110.6e122a1
pkgrel=1
pkgdesc="Universal Charset Detector C/C++ API"
arch=('i686' 'x86_64' 'arm')
url="https://github.com/yhfudev/cpp-libucd.git"
license=('GPL')
depends=('gcc-libs' 'bash')
makedepends=('git')
provides=('libucd-git')
conflicts=('libucd')
#install="$pkgname.install"
#PKGEXT=.pkg.tar.xz
source=(
        "$pkgname::git+https://github.com/yhfudev/cpp-libucd.git"
        )

md5sums=(
         'SKIP'
         )

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/$pkgname"
    #cd "${srcdir}/${pkgname}-${pkgver}"
    #patch -p0 < "$srcdir/libucd-fix.patch"
}

build() {
    cd "$srcdir/$pkgname"
    #cd "${srcdir}/${pkgname}-${pkgver}"
    ./autogen.sh
    ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-static --disable-icu
    make
}

package() {
    cd "$srcdir/$pkgname"
    #cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="$pkgdir/" install
}