mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
56 lines
1.5 KiB
Bash
56 lines
1.5 KiB
Bash
|
|
pkgname=oktopi
|
|
pkgver=1.5.2
|
|
pkgrel=3
|
|
git_sha="9895a4b5f72085a3c0a7083f9acd50443fa786fc"
|
|
pkgdesc="Oktopi, is a fork of octopi,a powerful Pacman frontend using Qt libs"
|
|
url="https://octopiproject.wordpress.com/"
|
|
arch=('x86_64')
|
|
license=('GPL3')
|
|
depends=('kde-baseapps-konsole' 'pacman' 'kdesdk-kate' 'pacmanlogviewer' 'mirror-check')
|
|
makedepends=('automoc4')
|
|
conflicts=('octopi')
|
|
categories=('system')
|
|
screenshot=('http://octopiproject.files.wordpress.com/2013/03/octopi_013_reinstalling_poppler.png?w=1000&h=')
|
|
source=("${pkgname}-${pkgver}.tar.gz"::"http://gitorious.org/chakra/oktopi/archive/${git_sha}.tar.gz"
|
|
news_rss.patch)
|
|
md5sums=('ab4d4cad683ab527876826cebb3d6e9b'
|
|
'8875bb67e9597e0b81fc72361f2efd5d')
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
mksource() {
|
|
if [ "${1}" = "" ] ; then
|
|
git clone git://gitorious.org//chakra/oktopi.git
|
|
else
|
|
git clone -b git://gitorious.org//chakra/oktopi.git
|
|
fi
|
|
|
|
pushd oktopi
|
|
popd
|
|
tar -cvJf oktopi-${pkgver}.tar.xz oktopi/*
|
|
md5sum oktopi-${pkgver}.tar.xz
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/chakra-oktopi"
|
|
|
|
#fix news old link
|
|
patch -p1 -i "${srcdir}/news_rss.patch"
|
|
|
|
mkdir build && cd build
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/chakra-oktopi/build"
|
|
|
|
mkdir -p ${pkgdir}/usr/share/icons
|
|
install -m 644 -p ../resources/images/oktopi_yellow.png ${pkgdir}/usr/share/icons/oktopi.png
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
mkdir -p ${pkgdir}/usr/share/applications
|
|
install -m644 -p ../oktopi.desktop ${pkgdir}/usr/share/applications
|
|
}
|