diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 11 insertions, 16 deletions
@@ -1,7 +1,7 @@ pkgbase = playhouse pkgdesc = A Playground for HTML/CSS/JavaScript pkgver = 1.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/sonnyp/Playhouse arch = x86_64 arch = aarch64 @@ -9,11 +9,12 @@ pkgbase = playhouse checkdepends = appstream-glib makedepends = git makedepends = blueprint-compiler + makedepends = python-gobject makedepends = meson depends = libadwaita depends = webkit2gtk-5.0 depends = gjs - source = git+https://github.com/sonnyp/Playhouse.git#commit=287811d971872b51bb6127a35610d1442e15b1f4 + source = playhouse-1.0::git+https://github.com/sonnyp/Playhouse#commit=287811d971872b51bb6127a35610d1442e15b1f4 source = git+https://github.com/sonnyp/troll.git b2sums = SKIP b2sums = SKIP @@ -1,39 +1,33 @@ # Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com> pkgname=playhouse -_pkgname=Playhouse pkgver=1.0 _commit=287811d971872b51bb6127a35610d1442e15b1f4 -pkgrel=1 +pkgrel=2 pkgdesc="A Playground for HTML/CSS/JavaScript" arch=('x86_64' 'aarch64') url="https://github.com/sonnyp/Playhouse" license=('GPL3') depends=('libadwaita' 'webkit2gtk-5.0' 'gjs') -makedepends=('git' 'blueprint-compiler' 'meson') +makedepends=('git' 'blueprint-compiler' 'python-gobject' 'meson') checkdepends=('appstream-glib') -source=("git+https://github.com/sonnyp/Playhouse.git#commit=${_commit}" - 'git+https://github.com/sonnyp/troll.git') +source=("${pkgname}-${pkgver}::git+$url#commit=$_commit" + 'git+https://github.com/sonnyp/troll.git') b2sums=('SKIP' 'SKIP') -pkgver() { - cd "$srcdir/$_pkgname" - git describe --tags | sed 's/^v//;s/-/+/g' -} - prepare() { - cd "$srcdir/$_pkgname" + cd "$pkgname-$pkgver" git submodule init git config submodule.src/troll.url "$srcdir/troll" - git submodule update + git -c protocol.file.allow=always submodule update --init --recursive # This is not a Flatpak - sed -i 's|app/bin|usr/bin|g' "$srcdir/$_pkgname"/src/meson.build + sed -i 's|app/bin|usr/bin|g' src/meson.build } build() { - arch-meson "${_pkgname%-git}" build + arch-meson "$pkgname-$pkgver" build meson compile -C build } |