summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 215a766d129d5c60044088d75f22961af61cfd4b (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
pkgname=torrent-file-editor
pkgver=0.3.17
pkgrel=2
pkgdesc='Cross-platform application intended to create and edit .torrent and uTorrent .dat files.'
arch=('x86_64')
url="https://${pkgname}.github.io/"
license=('GPL3')
depends=('qt5-base')
makedepends=('cmake' 'qt5-tools')

_commit='1ae5f71c3d52fae924efa71b0d8e5893a9ceb2c5'
_snapshot="${pkgname}-${_commit}"

source=("${pkgname}-${pkgver}-${_commit:0:7}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${_commit}.tar.gz")
sha256sums=('a0fcfd43f7fb641e64a32919921761df84e06d78531ad45070f367a1f01e7e6e')

build() {
    cmake -B "build" "${_snapshot}" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr

    cmake --build "build"
}

package() {
    DESTDIR="${pkgdir}" cmake --install "build"

    cd "${_snapshot}"
    install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "LICENSE"
}