summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a542d523e8d77eebb36ab3468fe9a3acb11fdbb (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
# Maintainer: Ariel AxionL <axionl@aosc.io>
# Contributor: Yuan Zhou <xyyqzy@hotmail.com>

pkgname=landrop-git
pkgver=r59.ee8144a
pkgrel=3
pkgdesc="Drop any files to any devices on your LAN."
arch=('x86_64')
url="https://github.com/LANDrop/LANDrop"
license=('BSD')
depends=('libsodium' 'qt5-base' 'hicolor-icon-theme')
makedepends=('git')
conflicts=('landrop')
provides=('landrop')
source=("${pkgname}::git+$url.git")
sha512sums=('SKIP')

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

build() {
    mkdir -p build
    cd build
    PREFIX=/usr qmake "${srcdir}/${pkgname}/LANDrop"
    make
}

package() {
    install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

    cd build
    make "INSTALL_ROOT=${pkgdir}" install
}
# vim set: ts=4 sw=4 et