Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add two skeleton PKGBUILDs

  • Loading branch information...
commit 426cca791541c6d2de009d1d52d16b3bdddc5ac1 1 parent f5983a5
Kuba authored June 13, 2012
70  PKGBUILD-git-skel
... ...
@@ -0,0 +1,70 @@
  1
+# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
  2
+# https://github.com/zizzfizzix/pkgbuilds
  3
+
  4
+##############################################################
  5
+#### The section below can be adjusted to suit your needs ####
  6
+##############################################################
  7
+
  8
+# What type of build do you want?
  9
+# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
  10
+# Default is DebugFull to help with debugging.
  11
+
  12
+_buildtype="DebugFull"
  13
+
  14
+# Which branch do you want to build from?
  15
+# Default is "master".
  16
+
  17
+_gitbranch="master"
  18
+
  19
+##############################################################
  20
+
  21
+pkgname=-git
  22
+pkgver=20120312
  23
+pkgrel=1
  24
+pkgdesc=""
  25
+arch=('i686' 'x86_64')
  26
+url="http://"
  27
+license=('GPL3')
  28
+depends=('')
  29
+optdepends=('-git: xx')
  30
+provides=('$pkgname')
  31
+conflicts=('$pkgname')
  32
+#options=(!strip)
  33
+install=.install
  34
+
  35
+# Clean options array to strip pkg if release buildtype is chosen
  36
+if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
  37
+  options=()
  38
+fi
  39
+
  40
+_gitroot="git://github.com/x-x/x.git"
  41
+_gitname="x"
  42
+
  43
+build() {
  44
+  cd ${srcdir}
  45
+  msg "Connecting to GIT server..."
  46
+
  47
+  if [ -d ${_gitname} ]; then
  48
+    cd ${_gitname} && git checkout ${_gitbranch} && git pull origin ${_gitbranch}
  49
+  else
  50
+    git clone --depth 1 ${_gitroot} -b ${_gitbranch}
  51
+  fi
  52
+
  53
+  msg "GIT checkout done or server timeout"
  54
+
  55
+  if [[ -e ${srcdir}/${_gitname}-build ]]; then rm -rf ${srcdir}/${_gitname}-build; fi
  56
+  mkdir ${srcdir}/${_gitname}-build
  57
+  cd ${srcdir}/${_gitname}-build
  58
+
  59
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
  60
+        -DCMAKE_INSTALL_LIBDIR=lib \
  61
+        -DCMAKE_INSTALL_LIBEXECDIR=lib/${_gitname} \
  62
+        -DCMAKE_BUILD_TYPE=${_buildtype} \
  63
+        ../${_gitname}
  64
+  make
  65
+}
  66
+
  67
+package() {
  68
+  cd ${srcdir}/${_gitname}-build
  69
+  make DESTDIR=${pkgdir} install
  70
+}
54  PKGBUILD-skel
... ...
@@ -0,0 +1,54 @@
  1
+# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
  2
+# https://github.com/zizzfizzix/pkgbuilds
  3
+
  4
+##############################################################
  5
+#### The section below can be adjusted to suit your needs ####
  6
+##############################################################
  7
+
  8
+# What type of build do you want?
  9
+# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
  10
+# Default is RelWithDebInfo to help with debugging.
  11
+
  12
+_buildtype="RelWithDebInfo"
  13
+
  14
+##############################################################
  15
+
  16
+pkgname=
  17
+pkgver=
  18
+pkgrel=1
  19
+pkgdesc=""
  20
+arch=('i686' 'x86_64')
  21
+url="http://"
  22
+license=('')
  23
+depends=('')
  24
+makedepends=('')
  25
+optdepends=('')
  26
+provides=('')
  27
+conflicts=('-git')
  28
+#options=(!strip)
  29
+source=("http://${pkgname}-${pkgver}.tar.bz2")
  30
+md5sums=('')
  31
+install=.install
  32
+
  33
+# Clean options array to strip pkg if release buildtype is chosen
  34
+if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
  35
+  options=()
  36
+fi
  37
+
  38
+build() {
  39
+  if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
  40
+  mkdir ${srcdir}/${pkgname}-${pkgver}-build
  41
+  cd ${srcdir}/${pkgname}-${pkgver}-build
  42
+
  43
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
  44
+        -DCMAKE_INSTALL_LIBDIR=lib \
  45
+        -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \
  46
+        -DCMAKE_BUILD_TYPE=${_buildtype} \
  47
+        ../${pkgname}-${pkgver}
  48
+  make
  49
+}
  50
+
  51
+package() {
  52
+  cd ${srcdir}/${pkgname}-${pkgver}-build
  53
+  make DESTDIR=${pkgdir} install
  54
+}
13  csync-owncloud/PKGBUILD
@@ -16,14 +16,14 @@ _buildtype="RelWithDebInfo"
16 16
 _name=csync
17 17
 pkgname=csync-owncloud
18 18
 pkgver=0.50.6
19  
-pkgrel=2
  19
+pkgrel=3
20 20
 pkgdesc="A file synchronizer especially designed for you, the normal user."
21 21
 arch=("i686" "x86_64")
22 22
 url="http://www.csync.org"
23 23
 license=('GPL2')
24  
-depends=('log4c' 'sqlite3' 'iniparser' 'neon')
25  
-makedepends=('cmake' 'smbclient' 'libssh')
26  
-optdepends=('samba: smb support' 'libssh: sftp support')
  24
+depends=('log4c' 'sqlite3' 'iniparser' 'neon' 'smbclient' 'libssh')
  25
+makedepends=('cmake')
  26
+#optdepends=('samba: smb support' 'libssh: sftp support')
27 27
 provides=('csync')
28 28
 conflicts=('csync')
29 29
 options=(!strip)
@@ -40,7 +40,10 @@ build() {
40 40
   mkdir ${srcdir}/${_name}-${pkgver}-build
41 41
   cd ${srcdir}/${_name}-${pkgver}-build
42 42
   
43  
-  cmake -DCMAKE_BUILD_TYPE=${_buildtype} -DCMAKE_INSTALL_PREFIX=/usr ../${_name}-${pkgver}
  43
+  cmake -DCMAKE_BUILD_TYPE=${_buildtype} \
  44
+        -DCMAKE_INSTALL_PREFIX=/usr \
  45
+        -DSYSCONF_INSTALL_DIR=/etc \
  46
+        ../${_name}-${pkgver}
44 47
   make
45 48
 }
46 49
 package() {

0 notes on commit 426cca7

Please sign in to comment.
Something went wrong with that request. Please try again.