mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
pkgname=berry
|
|
pkgver=1.0.0
|
|
pkgrel=1
|
|
pkgdesc="A simple, modern and light image viewer"
|
|
replaces=('limoo')
|
|
conflicts=('limoo')
|
|
provides=('limoo')
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url=("http://aseman.co/berry")
|
|
screenshot='http://qt-apps.org/CONTENT/content-pre3/169391-3.jpg'
|
|
depends=('qt5-base' 'qt5-declarative' 'qt5-svg' 'qt5-multimedia' 'qt5-graphicaleffects' 'qt5-imageformats' 'exiv2')
|
|
source=("http://aseman.co/downloads/berry/1/berry-${pkgver}-src.tar.gz")
|
|
sha512sums=('06289812b6d709bc2db64b41832974a66e8a38e19efef19ef1560717dc0929639aaf912319b6eed986f4422fa273c987f17e5921024b0b155288a2509b995d6b')
|
|
|
|
prepare() {
|
|
cd ${srcdir}/${pkgname}
|
|
|
|
sed -i s!/usr/share/berry/files/icons/berry.png!berry! \
|
|
files/shortcuts/normal/Berry.desktop
|
|
|
|
echo "#!/bin/sh
|
|
exec /usr/share/berry/berry" > ${srcdir}/${pkgname}.sh
|
|
}
|
|
build() {
|
|
cd ${srcdir}/${pkgname}
|
|
|
|
mkdir build && cd build
|
|
qmake-qt5 ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}/build
|
|
|
|
install -D ${srcdir}/${pkgname}.sh $pkgdir/usr/bin/${pkgname}
|
|
|
|
install -D ${pkgname} $pkgdir/usr/share/berry/${pkgname}
|
|
|
|
install -D ../files/shortcuts/normal/Berry.desktop $pkgdir/usr/share/applications/$pkgname.desktop
|
|
install -d ${pkgdir}/usr/share/berry/files/translations
|
|
cp -R files/translations/* ${pkgdir}/usr/share/berry/files/translations
|
|
install -D ../files/icons/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
|
} |