diff options
author | Mark Wagie | 2022-09-07 11:25:27 -0600 |
---|---|---|
committer | Mark Wagie | 2022-09-07 11:25:27 -0600 |
commit | fab5f68761a66c35f964d8e79f00729efe89843a (patch) | |
tree | b0118f040681b595258791423c58d1d7f50e6a3a | |
parent | de9e1908faf9cdf3314dc74132e3878cc569fe52 (diff) | |
download | aur-fab5f68761a66c35f964d8e79f00729efe89843a.tar.gz |
adopt package
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 42 |
3 files changed, 46 insertions, 27 deletions
@@ -1,24 +1,22 @@ pkgbase = blanket-git pkgdesc = Improve focus and increase your productivity by listening to different sounds. - pkgver = 0.5.0.r18.g3593315 + pkgver = 0.6.0.r25.g2e0d2b8 pkgrel = 1 - url = https://github.com/rafaelmardojai/blanket - arch = aarch64 - arch = armv6h - arch = armv7h - arch = i686 - arch = x86_64 - license = GPL3 - makedepends = git + url = https://apps.gnome.org/app/com.rafaelmardojai.Blanket + arch = any + license = GPL2 + checkdepends = appstream-glib makedepends = meson - depends = gstreamer - depends = gtk4 + makedepends = git + depends = gst-plugins-bad-libs + depends = gst-plugins-base + depends = gst-plugins-good + depends = gst-python depends = libadwaita - depends = python depends = python-gobject provides = blanket conflicts = blanket source = git+https://github.com/rafaelmardojai/blanket.git - b2sums = SKIP + sha256sums = SKIP pkgname = blanket-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4dab8d6386e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,28 +1,42 @@ +# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> pkgname=blanket-git -_pkgname=blanket -pkgver=0.5.0.r18.g3593315 +pkgver=0.6.0.r25.g2e0d2b8 pkgrel=1 pkgdesc="Improve focus and increase your productivity by listening to different sounds." -url="https://github.com/rafaelmardojai/blanket" -arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64') -license=(GPL3) -depends=('gstreamer' 'gtk4' 'libadwaita' 'python' 'python-gobject') -makedepends=('git' 'meson') -provides=(${_pkgname}) -conflicts=(${_pkgname}) +arch=('any') +url="https://apps.gnome.org/app/com.rafaelmardojai.Blanket" +license=('GPL2') +depends=('gst-plugins-bad-libs' 'gst-plugins-base' 'gst-plugins-good' 'gst-python' + 'libadwaita' 'python-gobject') +makedepends=('meson' 'git') +checkdepends=('appstream-glib') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") source=("git+https://github.com/rafaelmardojai/blanket.git") -b2sums=('SKIP') +sha256sums=('SKIP') pkgver() { - cd ${_pkgname} + cd "$srcdir/${pkgname%-git}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "$srcdir/${pkgname%-git}" + + # Specify GstPlay version before import + sed -i "/^from gi.repository import GObject, Gst/i import gi\ngi.require_version('GstPlay', '1.0')" \ + "${pkgname%-git}/sound.py" +} + build() { - arch-meson ${_pkgname} build - ninja -C build + arch-meson "${pkgname%-git}" build + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs } package() { - DESTDIR="$pkgdir" meson install -C build + meson install -C build --destdir "$pkgdir" } |