summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af793ce24e6e9fa99e2dbe1ca63035899e8c7350 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Yunhui Fu <yhfudev@gmail.com>

pkgname=u8gfonttest-git
pkgver=b4e88de
pkgrel=1
pkgdesc="Show UTF-8 human readable strings from source code to your tiny LCD via u8glib"
arch=( 'i686' 'x86_64' 'armv5tel' 'armv7l' )
url="https://github.com/yhfudev/u8glib-fontutf8.git"
license=('GPL')
depends=('u8glib-git' sdl)
optdepends=(pcf2bdf wiringpi-git)

provides=("${pkgname}")
conflicts=('u8gfonttest')

makedepends=("git" "gcc" autoconf automake)

source=(
    "${pkgname}::git+https://github.com/yhfudev/u8glib-fontutf8.git"
    )
md5sums=(
    SKIP
    )

pkgver_git() {
    cd "${srcdir}/${pkgname}"
    local ver="$(git show | grep commit | awk '{print $2}' )"
    #printf "r%s" "${ver//[[:alpha:]]}"
    echo ${ver:0:7}
}

pkgver_svn() {
    cd "${srcdir}/${pkgname}"
    local ver="$(svn info | grep Revision | awk '{print $2}' )"
    #printf "r%s" "${ver//[[:alpha:]]}"
    echo ${ver:0:7}
}

pkgver() {
    pkgver_git
}

prepare() {
    cd "${srcdir}/${pkgname}"
}

build() {
    cd "${srcdir}/${pkgname}"

    msg "Starting make..."
    ./autogen.sh
    ./configure --prefix=/usr
    make clean all || return 1
}

package() {
    cd "${srcdir}/${pkgname}"

    make DESTDIR="$pkgdir" install
}