mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 15:37:18 +00:00
added istodo
This commit is contained in:
parent
ff23094549
commit
664b5fd841
35
istodo/PKGBUILD
Normal file
35
istodo/PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Maintainer: Evgeniy "arcanis" Alekseev <arcanis.arch at gmail dot com>
|
||||||
|
|
||||||
|
pkgname=istodo
|
||||||
|
_pkgname=iStodo
|
||||||
|
pkgver=1.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Crossplatform Qt5 based organizer for students"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://istodo.ru/"
|
||||||
|
license=('custom')
|
||||||
|
options=('!strip')
|
||||||
|
depends=('hicolor-icon-theme' 'libsm' 'mesa' 'qt5-base')
|
||||||
|
makedepends=('desktop-file-utils')
|
||||||
|
install=${pkgname}.install
|
||||||
|
|
||||||
|
if [ "${CARCH}" == "x86_64" ]; then
|
||||||
|
_filearch=x86_64
|
||||||
|
md5sums=('47daa77b728d1f8c5ecc1bd4d5ee66d4')
|
||||||
|
else
|
||||||
|
_filearch=x86
|
||||||
|
md5sums=('2b60097a7dd221810c86ac0f2e269c93')
|
||||||
|
fi
|
||||||
|
source=(${pkgname}-${pkgver}.tar.gz::http://istodo.ru/distribs/${_pkgname}-linux-${_filearch}-${pkgver}.tar.gz)
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${_pkgname}-linux-${_filearch}-${pkgver}"
|
||||||
|
|
||||||
|
install -Dm755 iStodo.bin "${pkgdir}/usr/bin/istodo"
|
||||||
|
install -Dm644 iStodo.desktop "${pkgdir}/usr/share/applications/iStodo.desktop"
|
||||||
|
for _size in 32x32 48x48 64x64 128x128 256x256; do
|
||||||
|
install -Dm644 icons/${_size}/iStodo.png "${pkgdir}/usr/share/icons/hicolor/${_size}/iStodo.png"
|
||||||
|
done
|
||||||
|
|
||||||
|
install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
12
istodo/istodo.install
Normal file
12
istodo/istodo.install
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
post_install() {
|
||||||
|
xdg-icon-resource forceupdate --theme hicolor
|
||||||
|
update-desktop-database -q
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
post_install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user