[arch-commits] Commit in stalonetray/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Sat Feb 6 16:22:41 UTC 2021


    Date: Saturday, February 6, 2021 @ 16:22:41
  Author: spupykin
Revision: 846878

upgpkg: stalonetray 0.8.3-4

Modified:
  stalonetray/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-06 16:22:36 UTC (rev 846877)
+++ PKGBUILD	2021-02-06 16:22:41 UTC (rev 846878)
@@ -2,17 +2,25 @@
 
 pkgname=stalonetray
 pkgver=0.8.3
-pkgrel=3
+pkgrel=4
 pkgdesc="STAnd-aLONE sysTRAY. It has minimal build and run-time dependencies: the Xlib only."
 arch=('x86_64')
-url="http://stalonetray.sourceforge.net"
+url="https://github.com/kolbusa/stalonetray"
 license=('GPL')
 depends=('libx11' 'libxpm')
-source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
-sha512sums=('b1c50d844b6497b586c1ad56b721675690ea305a4e3a2601ab5305af0e208c215825eefa8fa374ae0c392252156a8dffd5882992c943344f5b6a674fe6553942')
+makedepends=('libxslt' 'docbook-xsl')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kolbusa/stalonetray/archive/v$pkgver.tar.gz")
+sha512sums=('5aee6a0bc85f90ba5ff187da8d9c510d301b794ebdfe36abce2643a0426dc4495da0e5c696c61af201e95e4e05b6414e90d8fcd5c047417ad8f7b2aba6affae0')
 
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver
+  XSLVER=$(pacman -Q docbook-xsl | cut -d' ' -f2 | cut -d- -f1)
+  sed -i "s|/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl|/usr/share/xml/docbook/xsl-stylesheets-$XSLVER/manpages/docbook.xsl|g" Makefile.am
+}
+
 build() {
   cd "$srcdir"/$pkgname-$pkgver
+  test -x configure || aclocal && autoheader && autoconf && automake --add-missing
   ./configure --prefix=/usr
   make
 }
@@ -20,5 +28,5 @@
 package() {
   cd "$srcdir"/$pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  install -D -m644 stalonetrayrc.sample "$pkgdir"/etc/stalonetrayrc
+  install -D -m644 stalonetrayrc.sample.in "$pkgdir"/etc/stalonetrayrc # FIXME
 }


More information about the arch-commits mailing list