diff options
author | Gomasy | 2021-12-26 07:53:07 +0900 |
---|---|---|
committer | Gomasy | 2021-12-26 07:53:07 +0900 |
commit | fe4d2494143c0f779f3e514170624625a73b62e6 (patch) | |
tree | 3034ed317df4433fb443a518697d23be29c6f64c | |
parent | 0f301085edb6129be6804a797985c2d244d90d67 (diff) | |
download | aur-fe4d2494143c0f779f3e514170624625a73b62e6.tar.gz |
Bump to 5.0.0
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rwxr-xr-x | mikutter.desktop | 2 |
3 files changed, 37 insertions, 21 deletions
@@ -1,17 +1,20 @@ pkgbase = mikutter pkgdesc = a moest twitter client - pkgver = 4.1.7 + pkgver = 5.0.0 pkgrel = 1 url = http://mikutter.hachune.net/ arch = i686 arch = x86_64 license = MIT + makedepends = gobject-introspection + depends = gobject-introspection-runtime + depends = gtk3 + depends = ruby-bundler optdepends = alsa-utils: sound notification support optdepends = libnotify: notify support - options = !strip - source = https://mikutter.hachune.net/bin/mikutter-4.1.7-x86_64.AppImage + source = http://mikutter.hachune.net/bin/mikutter-5.0.0.tar.gz source = mikutter.desktop - md5sums = 310fd03b13331bf10ff75c05508ef04b - md5sums = be88935513f84d6287cc084e1c50cd88 + md5sums = aa6b69e8bd00c05607e47482dda7cc13 + md5sums = 3bc1c65e13b6182a9c989835eefc8810 pkgname = mikutter @@ -3,35 +3,48 @@ # Contributor: 2GMon <t_2gmon@yahoo.co.jp> pkgname=mikutter -pkgver=4.1.7 +pkgver=5.0.0 pkgrel=1 pkgdesc="a moest twitter client" arch=('i686' 'x86_64') url="http://mikutter.hachune.net/" license=('MIT') +depends=('gobject-introspection-runtime' 'gtk3' 'ruby-bundler') +makedepends=('gobject-introspection') optdepends=('alsa-utils: sound notification support' 'libnotify: notify support') -options=(!strip) -appimage=$pkgname-$pkgver-x86_64.AppImage source=( -https://mikutter.hachune.net/bin/$appimage +http://mikutter.hachune.net/bin/$pkgname-$pkgver.tar.gz mikutter.desktop ) +_gemdir="vendor/bundle/ruby/`ruby -e'print Gem.dir.match(/^.+\/(.+?)$/)[1]'`" -package() { - chmod a+x $appimage - ./$appimage --appimage-extract +build() { + cd "$pkgname-$pkgver" + + gem install --no-document --no-user-install -i $_gemdir rake + bundle config --local path "vendor/bundle" + bundle config --local without "test" + bundle install - mkdir -p $pkgdir/usr/share/icons - cp squashfs-root/mikutter.png $pkgdir/usr/share/icons + rm -rf $_gemdir/{build_info,cache,doc} +} + +package() { + mkdir "$pkgdir/opt" + cp -r "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/mikutter" - mkdir -p $pkgdir/usr/bin - cp $appimage $pkgdir/usr/bin/mikutter + mkdir -p "$pkgdir/usr/bin" + cat <<'EOF' > "$pkgdir/usr/bin/mikutter" +#!/bin/sh +BUNDLE_GEMFILE=/opt/mikutter/Gemfile bundle exec ruby /opt/mikutter/mikutter.rb $@ +EOF + chmod a+x "$pkgdir/usr/bin/mikutter" mkdir -p $pkgdir/usr/share/applications - cp $srcdir/mikutter.desktop $pkgdir/usr/share/applications - chmod a+x $pkgdir/usr/share/applications/mikutter.desktop + cp "$srcdir/mikutter.desktop" "$pkgdir/usr/share/applications" + chmod +x $pkgdir/usr/share/applications/mikutter.desktop } -md5sums=('310fd03b13331bf10ff75c05508ef04b' - 'be88935513f84d6287cc084e1c50cd88' ) +md5sums=('aa6b69e8bd00c05607e47482dda7cc13' + '3bc1c65e13b6182a9c989835eefc8810') diff --git a/mikutter.desktop b/mikutter.desktop index 232d74793c20..c47d383ee2cb 100755 --- a/mikutter.desktop +++ b/mikutter.desktop @@ -3,6 +3,6 @@ Name=mikutter Type=Application Categories=Network GenericName=mikutter -Icon=/usr/share/icons/mikutter.png +Icon=/opt/mikutter/core/skin/data/icon.png Exec=/usr/bin/mikutter Terminal=false |