summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec08f2c2aedfc134cb010dee424df07500c03398 (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: justforlxz <justforlxz@gmail.com>

pkgname=dtkcommon-git
_pkgname=dtkcommon
pkgver=5.6.21.r0.gb564e1c
pkgrel=1
pkgdesc='DTK common modules'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtkcommon"
license=('LGPL3')
depends=()
makedepends=('git' 'cmake' 'ninja')
conflicts=('dtkcommon')
provides=('dtkcommon')
groups=('deepin-git')
source=("git+https://github.com/linuxdeepin/dtkcommon")
sha512sums=('SKIP')

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

build() {
  cd $srcdir/$_pkgname
  cmake -B build -GNinja \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DMKSPECS_INSTALL_DIR=/usr/lib/qt/mkspecs/ \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  cd $srcdir/$_pkgname/build
  DESTDIR="$pkgdir" ninja install
}