Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

PurC-Fetcher 的 AUR 包 #2

Open
taotieren opened this issue Aug 26, 2022 · 0 comments
Open

PurC-Fetcher 的 AUR 包 #2

taotieren opened this issue Aug 26, 2022 · 0 comments

Comments

@taotieren
Copy link

PurC-Fetcher 开发版 AUR 包

yay -S purc-fetcher-git

PurC-Fetcher PKGBUILD

# Maintainer: taotieren <[email protected]>

pkgname=purc-fetcher-git
pkgver=92b2052
pkgrel=1
pkgdesc="The remote data fetcher for PurC."
arch=('any')
url="https://github.com/HVML/PurC-Fetcher"
license=('LGPL-3.0')
provides=(${pkgname%-git}  'PurC-Fetcher')
conflicts=(${pkgname%-git})
#replaces=(${pkgname})
depends=('gcc' 'glib2' 'libsoup')
makedepends=('git' 'python' 'cmake' 'ninja' 'ccache' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu')
optdepends=('purc')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')

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

build() {
    cd "${srcdir}/${pkgname%-git}"
# CMake build
#     cmake -DCMAKE_BUILD_TYPE=Debug \
#         -DPORT=Linux \
#         -DCMAKE_INSTALL_PREFIX=/usr \
#         -DCMAKE_INSTALL_LIBDIR=lib \
#         -DCMAKE_INSTALL_LIBEXECDIR=lib \
#         -B build

#     cmake --build build

# Ninja build
    cmake -DCMAKE_BUILD_TYPE=Debug \
        -DPORT=Linux \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_LIBEXECDIR=lib \
        -B build \
        -G Ninja

    ninja -C build
}

package() {
# make install
#     make -C "${srcdir}"/${pkgname%-git}/build install DESTDIR="${pkgdir}"

# ninja install
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}

由于暂未发布,暂时不提供发行版包

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant