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

pkgname=wms-git
pkgver=1.0.0
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')

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
}