blob: 48780fd91762a6f148336354882d4e83f853e666 (
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
|
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=treeland-protocols-git
_pkgname=treeland-protocols
pkgver=0.4.r0.g75efb88
pkgrel=1
pkgdesc='treeland protocol xml files'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/treeland-protocols"
license=('LGPL3')
makedepends=('git'
'cmake'
'ninja'
)
conflicts=('treeland-protocols')
provides=('treeland-protocols')
groups=('deepin-git')
source=("git+https://github.com/linuxdeepin/treeland-protocols.git")
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_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd $srcdir/$_pkgname/build
DESTDIR="$pkgdir" ninja install
}
|