octopi-git: added PKGBUILD (very WIP)
This commit is contained in:
82
mingw-w64-octopi-git/PKGBUILD
Normal file
82
mingw-w64-octopi-git/PKGBUILD
Normal file
@@ -0,0 +1,82 @@
|
||||
# Maintainer: Ray Donnelly <mingw.android@gmail.com>
|
||||
|
||||
_realname=octopi
|
||||
_mingw_suff=mingw-w64-${CARCH}
|
||||
pkgname="${_mingw_suff}-${_realname}-git"
|
||||
pkgver=r431.29d4bd7
|
||||
pkgrel=1
|
||||
pkgdesc="a powerful Pacman frontend using Qt libs"
|
||||
arch=('any')
|
||||
url="https://github.com/aarnt/octopi"
|
||||
license=('GPL2')
|
||||
install=${_realname}-git.install
|
||||
makedepends=('git' "${_mingw_suff}-cmake" "${_mingw_suff}-make")
|
||||
depends=("${_mingw_suff}-qt5" "${_mingw_suff}-gcc")
|
||||
provides=('octopi')
|
||||
conflicts=('octopi' 'oktopi-git')
|
||||
md5sums=()
|
||||
_gitroot="git://github.com/aarnt/octopi.git"
|
||||
_gitname="octopi"
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_realname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null)
|
||||
jc=$((${cpucount:-1}))
|
||||
|
||||
cd "$srcdir"
|
||||
msg "Connecting to the GIT server...."
|
||||
if [[ -d "$_gitname" ]]; then
|
||||
cd "$_gitname" && git pull origin && cd "$srcdir"
|
||||
msg "The local files are updated."
|
||||
else
|
||||
git clone "$_gitroot" "$_gitname"
|
||||
fi
|
||||
|
||||
msg "GIT checkout done or server timeout"
|
||||
msg "Starting build..."
|
||||
|
||||
rm -rf "$_gitname-build"
|
||||
git clone "$_gitname" "$_gitname-build"
|
||||
cd "$_gitname-build"
|
||||
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
||||
#cmake .. -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -DCMAKE_BUILD_TYPE=Release
|
||||
qmake $_gitname.pro
|
||||
#"CONFIG+=LINUX_INTEGRATED" \
|
||||
#"INSTALL_ROOT_PATH=$pkgdir/usr/" \
|
||||
#"LOWERED_APPNAME=$pkgname"
|
||||
|
||||
make -j $jc
|
||||
cd "$srcdir/$_gitname-build"/notifier/pacmanhelper
|
||||
msg "Building pacmanhelper..."
|
||||
qmake pacmanhelper.pro
|
||||
make -j $jc
|
||||
|
||||
cd "$srcdir/$_gitname-build"/notifier/$_gitname-notifier/
|
||||
msg "Building $_gitname-notifier..."
|
||||
qmake-qt4 $_gitname-notifier.pro
|
||||
make -j $jc
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname-build"
|
||||
|
||||
install -D -m755 $srcdir/$_gitname-build/bin/$_gitname ${pkgdir}/usr/bin/$_gitname
|
||||
install -D -m755 $srcdir/$_gitname-build/notifier/bin/$_gitname-notifier ${pkgdir}/usr/bin/$_gitname-notifier
|
||||
install -D -m644 $srcdir/$_gitname-build/$_gitname.desktop ${pkgdir}/usr/share/applications/$_gitname.desktop
|
||||
install -D -m644 $srcdir/$_gitname-build/$_gitname-notifier.desktop ${pkgdir}/usr/share/applications/$_gitname-notifier.desktop
|
||||
install -D -m644 $srcdir/$_gitname-build/resources/images/${_gitname}_red.png ${pkgdir}/usr/share/icons/$_gitname.png
|
||||
|
||||
#services
|
||||
install -D -m755 notifier/bin/pacmanhelper ${pkgdir}/lib/octopi/pacmanhelper
|
||||
|
||||
install -D -m644 notifier/pacmanhelper/polkit/org.octopi.pacman.policy ${pkgdir}/usr/share/polkit-1/actions/org.octopi.pacman.policy
|
||||
install -D -m644 notifier/pacmanhelper/polkit/org.octopi.pacmanhelper.conf ${pkgdir}/etc/dbus-1/system.d/org.octopi.pacmanhelper.conf
|
||||
install -D -m644 notifier/pacmanhelper/polkit/org.octopi.pacmanhelper.xml ${pkgdir}/usr/share/dbus-1/interfaces/org.octopi.pacmanhelper.xml
|
||||
install -D -m644 notifier/pacmanhelper/polkit/org.octopi.pacmanhelper.service ${pkgdir}/usr/share/dbus-1/system-services/org.octopi.pacmanhelper.service
|
||||
#make DESTDIR="${pkgdir}/" install
|
||||
#make INSTALL_ROOT=${pkgdir} install
|
||||
}
|
||||
12
mingw-w64-octopi-git/octopi-git.install
Normal file
12
mingw-w64-octopi-git/octopi-git.install
Normal file
@@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
update-desktop-database -q
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install $1
|
||||
}
|
||||
Reference in New Issue
Block a user