blob: 076e9572ee2246231bd38143d38e590689d22706 (
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
40
|
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkcommon-git
pkgver=5.5.20.r3.g71cf434
pkgrel=1
pkgdesc='DTK common modules'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtkcommon"
license=('LGPL3')
depends=()
makedepends=('git' 'qt5-tools' 'gtest' 'gmock')
conflicts=('dtkcore-git<5.4.0' 'dtkcore<5.4.0' 'dtkgui-git<5.4.0' 'dtkgui<5.4.0' 'dtkcommon')
providers=('dtkcore-git' 'dtkgui-git')
groups=('deepin-git')
source=("$pkgname::git+https://github.com/linuxdeepin/dtkcommon.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
sed -i 's/qt5/qt/g' dtkcommon.pro
}
prepare() {
cd $pkgname
if [[ ! -z ${sha} ]];then
git checkout -b $sha
fi
}
build() {
cd $pkgname
qmake-qt5 PREFIX=/usr DTK_VERSION=$pkgver LIB_INSTALL_DIR=/usr/lib
make
}
package() {
cd $pkgname
make INSTALL_ROOT="$pkgdir" install
}
|