diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 23 insertions, 13 deletions
@@ -1,16 +1,20 @@ pkgbase = lm-warp-git pkgdesc = Share files across the LAN by Linux Mint - pkgver = 0.0.1 + pkgver = r21.cb9f695 pkgrel = 1 url = https://github.com/linuxmint/warp arch = x86_64 + license = none makedepends = git makedepends = meson depends = pygobject-devel depends = python-setproctitle depends = python-zeroconf depends = python-xapp - source = lm-warp-git::git://github.com/linuxmint/warp/ + depends = xapps + provides = lm-warp + conflicts = lm-warp + source = git+https://github.com/linuxmint/warp.git sha512sums = SKIP pkgname = lm-warp-git @@ -1,24 +1,30 @@ # Maintainer: Kyle Laker <kyle@laker.email> +# Contributor: Mark Wagie <mark dot wagie at tutanota dot com> pkgname=lm-warp-git -pkgver=0.0.1 +pkgver=r21.cb9f695 pkgrel=1 pkgdesc="Share files across the LAN by Linux Mint" arch=("x86_64") -_github="github.com/linuxmint/warp" -url="https://$_github" -depends=(pygobject-devel python-setproctitle python-zeroconf python-xapp) -makedepends=(git meson) -source=("$pkgname::git://$_github/") +url="https://github.com/linuxmint/warp" +license=("none") +depends=("pygobject-devel" "python-setproctitle" "python-zeroconf" "python-xapp" "xapps") +makedepends=("git" "meson") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+${url}.git") sha512sums=('SKIP') +pkgver() { + cd "$srcdir/warp" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { - cd "$srcdir" - pwd - meson --prefix /usr --buildtype=plain "$pkgname" build - ninja -C build + meson --prefix /usr --buildtype=plain warp build + ninja -C build } package() { - DESTDIR="$pkgdir" ninja -C build install + DESTDIR="$pkgdir" ninja -C build install } |