summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c84de8fa647a55652386a563cae347e60fd141a8 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
# Maintainer: taotieren <admin@taotieren.com>

pkgname=poedit-git
pkgver=3.4.1.r9.g1c1f3361d
pkgrel=1
epoch=
pkgdesc="Translations editor for Mac, Windows and Unix"
arch=('x86_64')
url="https://github.com/vslavik/poedit"
license=('MIT')
groups=()
depends=(aspell
    cld2
    cpprestsdk
    expat
    gettext
    gtkspell3
    hunspell
    nlohmann-json
    lucene++
    pugixml
    wxwidgets-gtk3
    webkit2gtk)
makedepends=(automake
    ccache
    boost
    git
    icu
    libjpeg-turbo
    libnotify
    libsecret
    zlib)
checkdepends=()
optdepends=()
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+${url}.git")
noextract=()
sha256sums=('SKIP')
#validpgpkeys=()

pkgver() {
    cd "${srcdir}/${pkgname}"
    git describe --long --tags | sed 's/^v//g;s/.oss//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

    ./bootstrap
    ./configure --prefix=/usr \
        --libexecdir=/usr/lib/poedit \
        --with-gtk=3 \
        --without-opengl \
        --with-sdl \
        --enable-webview \
        --with-cxx=14 \
        --enable-stl

    make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t'
}

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

    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}