diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,8 +1,9 @@ # Maintainer: justforlxz <justforlxz@gmail.com> pkgname=dtkcommon-git +_pkgname=dtkcommon pkgver=5.6.3.r1.g3781d33 -pkgrel=1 +pkgrel=2 pkgdesc='DTK common modules' arch=('x86_64' 'aarch64') url="https://github.com/linuxdeepin/dtkcommon" @@ -12,16 +13,16 @@ makedepends=('git' 'qt5-tools' 'gtest' 'gmock' 'cmake' 'ninja') conflicts=('dtkcommon') providers=('dtkcommon') groups=('deepin-git') -source=("$pkgname::git+https://github.com/linuxdeepin/dtkcommon") +source=("git+https://github.com/linuxdeepin/dtkcommon") sha512sums=('SKIP') pkgver() { - cd $pkgname + cd $srcdir/$_pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd $pkgname + cd $srcdir/$_pkgname cmake -B build -GNinja \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DLINUXNAME="archlinux" \ @@ -30,6 +31,6 @@ build() { } package() { - cd $pkgname/build + cd $srcdir/$_pkgname/build DESTDIR="$pkgdir" ninja install } |