Permalink
Browse files

add two skeleton PKGBUILDs

  • Loading branch information...
1 parent f5983a5 commit 426cca791541c6d2de009d1d52d16b3bdddc5ac1 Kuba Serafinowski committed Jun 13, 2012
Showing with 132 additions and 5 deletions.
  1. +70 −0 PKGBUILD-git-skel
  2. +54 −0 PKGBUILD-skel
  3. +8 −5 csync-owncloud/PKGBUILD
View
70 PKGBUILD-git-skel
@@ -0,0 +1,70 @@
+# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
+# https://github.com/zizzfizzix/pkgbuilds
+
+##############################################################
+#### The section below can be adjusted to suit your needs ####
+##############################################################
+
+# What type of build do you want?
+# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
+# Default is DebugFull to help with debugging.
+
+_buildtype="DebugFull"
+
+# Which branch do you want to build from?
+# Default is "master".
+
+_gitbranch="master"
+
+##############################################################
+
+pkgname=-git
+pkgver=20120312
+pkgrel=1
+pkgdesc=""
+arch=('i686' 'x86_64')
+url="http://"
+license=('GPL3')
+depends=('')
+optdepends=('-git: xx')
+provides=('$pkgname')
+conflicts=('$pkgname')
+#options=(!strip)
+install=.install
+
+# Clean options array to strip pkg if release buildtype is chosen
+if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
+ options=()
+fi
+
+_gitroot="git://github.com/x-x/x.git"
+_gitname="x"
+
+build() {
+ cd ${srcdir}
+ msg "Connecting to GIT server..."
+
+ if [ -d ${_gitname} ]; then
+ cd ${_gitname} && git checkout ${_gitbranch} && git pull origin ${_gitbranch}
+ else
+ git clone --depth 1 ${_gitroot} -b ${_gitbranch}
+ fi
+
+ msg "GIT checkout done or server timeout"
+
+ if [[ -e ${srcdir}/${_gitname}-build ]]; then rm -rf ${srcdir}/${_gitname}-build; fi
+ mkdir ${srcdir}/${_gitname}-build
+ cd ${srcdir}/${_gitname}-build
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=lib/${_gitname} \
+ -DCMAKE_BUILD_TYPE=${_buildtype} \
+ ../${_gitname}
+ make
+}
+
+package() {
+ cd ${srcdir}/${_gitname}-build
+ make DESTDIR=${pkgdir} install
+}
View
54 PKGBUILD-skel
@@ -0,0 +1,54 @@
+# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
+# https://github.com/zizzfizzix/pkgbuilds
+
+##############################################################
+#### The section below can be adjusted to suit your needs ####
+##############################################################
+
+# What type of build do you want?
+# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
+# Default is RelWithDebInfo to help with debugging.
+
+_buildtype="RelWithDebInfo"
+
+##############################################################
+
+pkgname=
+pkgver=
+pkgrel=1
+pkgdesc=""
+arch=('i686' 'x86_64')
+url="http://"
+license=('')
+depends=('')
+makedepends=('')
+optdepends=('')
+provides=('')
+conflicts=('-git')
+#options=(!strip)
+source=("http://${pkgname}-${pkgver}.tar.bz2")
+md5sums=('')
+install=.install
+
+# Clean options array to strip pkg if release buildtype is chosen
+if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
+ options=()
+fi
+
+build() {
+ if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
+ mkdir ${srcdir}/${pkgname}-${pkgver}-build
+ cd ${srcdir}/${pkgname}-${pkgver}-build
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \
+ -DCMAKE_BUILD_TYPE=${_buildtype} \
+ ../${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}-build
+ make DESTDIR=${pkgdir} install
+}
View
13 csync-owncloud/PKGBUILD
@@ -16,14 +16,14 @@ _buildtype="RelWithDebInfo"
_name=csync
pkgname=csync-owncloud
pkgver=0.50.6
-pkgrel=2
+pkgrel=3
pkgdesc="A file synchronizer especially designed for you, the normal user."
arch=("i686" "x86_64")
url="http://www.csync.org"
license=('GPL2')
-depends=('log4c' 'sqlite3' 'iniparser' 'neon')
-makedepends=('cmake' 'smbclient' 'libssh')
-optdepends=('samba: smb support' 'libssh: sftp support')
+depends=('log4c' 'sqlite3' 'iniparser' 'neon' 'smbclient' 'libssh')
+makedepends=('cmake')
+#optdepends=('samba: smb support' 'libssh: sftp support')
provides=('csync')
conflicts=('csync')
options=(!strip)
@@ -40,7 +40,10 @@ build() {
mkdir ${srcdir}/${_name}-${pkgver}-build
cd ${srcdir}/${_name}-${pkgver}-build
- cmake -DCMAKE_BUILD_TYPE=${_buildtype} -DCMAKE_INSTALL_PREFIX=/usr ../${_name}-${pkgver}
+ cmake -DCMAKE_BUILD_TYPE=${_buildtype} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSYSCONF_INSTALL_DIR=/etc \
+ ../${_name}-${pkgver}
make
}
package() {

0 comments on commit 426cca7

Please sign in to comment.