summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b74606af9a3ddd134054a4c409e518beb94f2f25 (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
# Maintainer: Weitian Leung <weitianleung[at]gmail[dot]com>

pkgname=wms-git
_pkgver=1.0.0
pkgver=1.0.0.b770e05
pkgrel=1
pkgdesc="A tool for changing WPS Office language with online languages supports."
url="https://github.com/timxx/wms"
arch=('i686' 'x86_64')
license=('MIT')
depends=('qt5-base' 'desktop-file-utils' 'p7zip' 'polkit' 'wps-office')
makedepends=('cmake' 'qt5-tools')
source=("$pkgname::git+https://github.com/timxx/wms.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    printf "${_pkgver}.%s" "$(git describe --always | sed 's/-/./g')"
}

prepare() {
    mkdir -p "${srcdir}/build"
}

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

    cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        "${srcdir}/${pkgname}"

    make
}

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

    make DESTDIR="${pkgdir}" install
}