diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 18 insertions, 31 deletions
@@ -1,45 +1,32 @@ -# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> +# Maintainer: zan <zan$420blaze.it> +# Contributor Gustavo Alvarez <sl1pkn07@gmail.com> # Contributor: Antonio Rojas pkgname=prison-git -pkgver=r99.f109d48 +_name=${pkgname%-git} +pkgver=v5.72.0.r3.g9449762 pkgrel=1 pkgdesc="Barcode api currently offering a nice Qt api to produce QRCode barcodes and DataMatrix barcodes. (GIT version)" -arch=('i686' 'x86_64') -url='https://projects.kde.org/projects/kdesupport/prison' -license=('LGPL') -depends=('libdmtx' - 'qrencode' - 'qt5-base' - ) -makedepends=('extra-cmake-modules' - 'git' - ) -conflicts=('prison') -provides=('prison') -source=('git://anongit.kde.org/prison') -sha1sums=('SKIP') +arch=(x86_64) +url='https://invent.kde.org/frameworks/prison' +license=(LGPL) +depends=(libdmtx qrencode qt5-declarative) +makedepends=(extra-cmake-modules git) +conflicts=(prison) +provides=(prison) +source=("git+https://invent.kde.org/frameworks/$_name.git") +md5sums=('SKIP') pkgver() { - cd prison - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - -prepare() { - mkdir -p build + cd $_name + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd build - cmake ../prison \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DKDE_INSTALL_LIBDIR=lib \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - -DBUILD_TESTING=OFF - make + cmake -B build -S $_name + cmake --build build } package() { - make -C build DESTDIR="${pkgdir}" install + DESTDIR="$pkgdir" cmake --install build } |