summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Pujol2019-09-07 14:33:37 +0100
committerAlexandre Pujol2019-09-07 14:33:37 +0100
commit488e5e85fb593e06e25564a77e2ead54595993f1 (patch)
tree972a6fd9a49552d7fc6d74269dff74351249b633
parent2fe617c6e304d9180294a459c24abc87ae9f87d4 (diff)
downloadaur-mausoleum.tar.gz
upgpkg: mausoleum 0.8.3-3
Rewrite the pkgbuild.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD45
-rw-r--r--mausoleum.desktop7
3 files changed, 35 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6d4025a3ac8..b0d62b02e05 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mausoleum
pkgdesc = A Python GUI application, command line interface, and wrapper for Tomb
pkgver = 0.8.3
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/mandeep/Mausoleum
arch = any
license = GPL3
@@ -17,7 +17,7 @@ pkgbase = mausoleum
source = https://github.com/mandeep/Mausoleum/archive/v0.8.3.tar.gz
source = mausoleum.desktop
sha512sums = 23ec29c2393125558da0db9f04bbdf995a46d8166dee8ba6dbe4d66bb669f48c6ce8f40c41db2073897deb5f329fe8c203ac3ba42da8d2aefddb3d5068d53106
- sha512sums = 1f0ca9c2b377be3c2d55d291013a8cab79499bd038216f18429f07918c6815c94474a19e4668c9e7bd8db6eb9358ef1dd9b8d91fb39bdb83c6a62114c5cdafe1
+ sha512sums = fdb2db16c6e8fa3f86a51198d732e50387ea174384ed5f23d7db35f62c00137c84add144fb2e0305d1ea52ee233f8f9f779ef49778ac97f26410ae1a2a2d8ed3
pkgname = mausoleum
diff --git a/PKGBUILD b/PKGBUILD
index dafafa32955..8c6433edbec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,49 @@
# Maintainer: Alexandre Pujol <alexandre@pujol.io>
_name='mausoleum'
-pkgname="${_name}"
+pkgname="$_name"
pkgver=0.8.3
-pkgrel=2
+pkgrel=3
pkgdesc='A Python GUI application, command line interface, and wrapper for Tomb'
arch=('any')
url='https://github.com/mandeep/Mausoleum'
license=('GPL3')
makedepends=('python-setuptools')
-depends=('tomb'
- 'python-pyqt5'
- 'python-pytoml'
- 'python-click'
- 'python-appdirs')
-conflicts=("${_name}-git")
-provides=("${_name}" "${_name}-gui")
-source=("https://github.com/mandeep/Mausoleum/archive/v${pkgver}.tar.gz"
+depends=(
+ 'tomb'
+ 'python-pyqt5'
+ 'python-pytoml'
+ 'python-click'
+ 'python-appdirs'
+)
+conflicts=("$_name-git")
+provides=("$_name" "$_name-gui")
+source=("https://github.com/mandeep/Mausoleum/archive/v$pkgver.tar.gz"
"mausoleum.desktop")
sha512sums=('23ec29c2393125558da0db9f04bbdf995a46d8166dee8ba6dbe4d66bb669f48c6ce8f40c41db2073897deb5f329fe8c203ac3ba42da8d2aefddb3d5068d53106'
- '1f0ca9c2b377be3c2d55d291013a8cab79499bd038216f18429f07918c6815c94474a19e4668c9e7bd8db6eb9358ef1dd9b8d91fb39bdb83c6a62114c5cdafe1')
+ 'fdb2db16c6e8fa3f86a51198d732e50387ea174384ed5f23d7db35f62c00137c84add144fb2e0305d1ea52ee233f8f9f779ef49778ac97f26410ae1a2a2d8ed3')
prepare() {
# Use latest archlinux dependencies
- cd "${srcdir}/Mausoleum-${pkgver}"
+ cd "Mausoleum-$pkgver"
sed -i -e "s/==[0-9.]*//g" setup.py
}
+build() {
+ cd "Mausoleum-$pkgver"
+ python setup.py build
+}
+
package() {
- cd "${srcdir}/Mausoleum-${pkgver}"
- python setup.py install --root="$pkgdir/" --optimize=1
+ cd "Mausoleum-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # Care for the icon
+ install -Dm644 mausoleum/images/ic_vpn_key_black_48dp_1x.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/$_name.png"
- # Desktop file
- install -Dm644 "${srcdir}/${_name}.desktop" "${pkgdir}/usr/share/applications/${_name}.desktop"
+ # Compose the desktop entry
+ export name="$_name" pkgver pkgdesc
+ install -d "$pkgdir"/usr/share/applications
+ envsubst < "$srcdir/$_name.desktop" > "$pkgdir/usr/share/applications/$_name.desktop"
}
diff --git a/mausoleum.desktop b/mausoleum.desktop
index 3fcfeae445f..312ba0fa0a7 100644
--- a/mausoleum.desktop
+++ b/mausoleum.desktop
@@ -1,10 +1,11 @@
[Desktop Entry]
+Version=$pkgver
Encoding=UTF-8
-Version=0.8.3
-Name=mausoleum
+Name=$name
+Comment=$pkgdesc
Exec=/usr/bin/mausoleum-gui
Terminal=false
-Icon=/usr/lib/python3.6/site-packages/mausoleum/images/ic_vpn_key_black_48dp_1x.png
+Icon=mausoleum
Type=Application
Categories=Application;Security;
Comment=Graphical wrapper for Tomb