add skel to create rpm and debs

This commit is contained in:
arcan1s 2014-12-23 10:32:18 +03:00
parent d1d4a97fa4
commit 498a965488
2 changed files with 31 additions and 2 deletions

View File

@ -2,7 +2,7 @@
pkgname=kdeplasma-applets-awesome-widgets
_pkgname=awesome-widgets
pkgver=2.0.5
pkgver=2.1.0
pkgrel=1
pkgdesc="Collection of minimalistic Plasmoids which look like Awesome WM widgets (ex-PyTextMonitor)"
arch=('i686' 'x86_64')
@ -19,7 +19,7 @@ optdepends=("amarok: for music player monitor"
makedepends=('automoc4' 'cmake')
source=(https://github.com/arcan1s/awesome-widgets/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
install=${pkgname}.install
md5sums=('a86de1841491ea1fc1d8021c5b3d9d43')
md5sums=('52af779478bac4f721adf0675b726577')
backup=('usr/share/config/extsysmon.conf')
prepare() {

29
create_rpm.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
ARCHIVE="$1"
VERSION="$2"
# prepare
rm -rf rpm-build
mkdir -p rpm-build/build
cd rpm-build
tar xJf "../${ARCHIVE}"
# build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) \
../awesome-widgets
make
make DESTDIR="../" install
# create tarball
cd ..
"${HOME}/.gem/ruby/2.1.0/bin/fpm" -s dir \
-t deb \
-n awesome-widgets \
-v "${VERSION}" \
-a native \
-C . \
--prefix / \
usr