Skip to content

Commit

Permalink
add pkgbuild and fix error target
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariakov committed Nov 26, 2018
1 parent 24c2f82 commit 4e7b68d
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 8 deletions.
61 changes: 61 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
#Maintainer: Abouzakaria <[email protected]>
pkgname=qobmenu
pkgver=0.1
pkgrel=1
epoch=
pkgdesc=""
arch=( 'x86_64')
url=""
license=('GPL')
groups=()
depends=('qt5-x11extras')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/zakariakov/qobmenu/archive/0.1.tar.gz" )

noextract=()
md5sums=("SKIP")
validpgpkeys=()

prepare() {
cd "$pkgname-$pkgver"

}

build() {
cd "$srcdir/$pkgname-$pkgver"
qmake "qobmenu.pro" \
PREFIX=/usr \
QMAKE_CFLAGS_RELEASE="${CFLAGS}"\
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}"
make
}

check() {
cd "$pkgname-$pkgver"
make -k check
}

package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install


make INSTALL_ROOT="${pkgdir}"/ install || return 1
find "$pkgdir" -type d -print0 | xargs -0 chmod -R 755
find "$pkgdir" -type f -print0 | xargs -0 chmod -R 644
chmod 755 "$pkgdir/usr/bin/qobmenu"

}
18 changes: 10 additions & 8 deletions qobmenu.pro
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,27 @@ TRANSLATIONS =usr/share/elokab/translations/ar/epanel.ts\
# INSTALL
#---------------------------------------------

MKDIR = mkdir -p /etc/xdg/menus
MKDIR = mkdir -p /etc/xdg/elokab
MKDIR = mkdir -p /usr/share/desktop-directories
MKDIR = mkdir -p /usr/share/elokab
# MKDIR = mkdir -p /etc/xdg/menus
# MKDIR = mkdir -p /etc/xdg/elokab
# MKDIR = mkdir -p /usr/share/desktop-directories
# MKDIR = mkdir -p /usr/share/elokab

#---config files---------
menusConfig.files =etc/xdg/menus/*
menusConfig.path=/etc/xdg/menus/
menusConfig.path=/etc/xdg/

obConfig.files =etc/xdg/elokab/*
obConfig.path=/etc/xdg/elokab/
obConfig.path=/etc/xdg/
#---DATA files---------------
dsDirectoriesData.files=usr/share/desktop-directories/*
dsDirectoriesData.path=/usr/share/desktop-directories/

elokabData.files=usr/share/elokab/*
elokabData.path=/usr/share/elokab

INSTALLS += obConfig \
target.path = /usr/bin

INSTALLS += target \
obConfig \
menusConfig \
dsDirectoriesData \
elokabData

0 comments on commit 4e7b68d

Please sign in to comment.