diff options
-rw-r--r--[-rwxr-xr-x] | libre/blender-libre/PKGBUILD | 18 | ||||
-rw-r--r-- | libre/django-countries/PKGBUILD | 26 | ||||
-rw-r--r-- | libre/luxblend25/PKGBUILD | 6 | ||||
-rw-r--r-- | libre/parabolaweb-utils/PKGBUILD | 24 | ||||
-rw-r--r-- | libre/parabolaweb-utils/helper.sh | 34 | ||||
-rwxr-xr-x | libre/your-freedom/PKGBUILD | 2 | ||||
-rw-r--r-- | pcr/emacs-mailcrypt/PKGBUILD | 32 | ||||
-rw-r--r-- | pcr/emacs-mailcrypt/destdir.patch | 41 | ||||
-rw-r--r-- | pcr/emacs-mailcrypt/mailcrypt.install | 22 |
9 files changed, 159 insertions, 46 deletions
diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD index 2360945ee..e6c684b1e 100755..100644 --- a/libre/blender-libre/PKGBUILD +++ b/libre/blender-libre/PKGBUILD @@ -15,9 +15,9 @@ else ) spndesc='' fi -pkgdesc="A fully integrated 3D graphics creation suite, without nonfree cuda-toolkit and redcode image format support$spndesc" -pkgver=2.64a -pkgrel=4 +pkgdesc="Fully integrated 3D graphics creation suite, without nonfree cuda-toolkit and redcode image format support$spndesc" +pkgver=2.65 +pkgrel=1 pkgaev=5 arch=( i686 @@ -137,7 +137,7 @@ source=( "http://download.${pkgbase%$pkgflag}.org/source/${pkgbase%$pkgflag}-$pkgver.tar.gz" ) sha512sums=( - 77d171a36f1c87a82613ed7601df9cef444069a2a6600e05260607e9a2009c292068a2b4753f3cbd53d820cdc8d9ed88ddd1685f20647b943f75bfbeb905b9b5 + 92488691c25d390eabf35569cb37ec62437dd42f57e096334a6ed804b3265efe6f81871eba15dad67399ff4e6bf4262d4043298a3ceb90e5dc57586eb9f2870f ) build() { @@ -148,7 +148,7 @@ build() { [[ $CARCH == i686 ]] && DSUPPORT_SSE2_BUILD='-DSUPPORT_SSE2_BUILD=OFF' - cmake .. \ + setarch $CARCH cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DPYTHON_INCLUDE_DIRS=/usr/include/python3.3m \ @@ -171,13 +171,13 @@ build() { -DWITH_PYTHON_INSTALL=OFF \ -DWITH_SYSTEM_GLEW=ON - make $MAKEFLAGS + setarch $CARCH make $MAKEFLAGS - make + setarch $CARCH make } package() { cd $srcdir/${pkgbase%$pkgflag}-$pkgver/build - make DESTDIR=$pkgdir install - python -m compileall $pkgdir/usr/share/${pkgbase%$pkgflag} + setarch $CARCH make DESTDIR=$pkgdir install + setarch $CARCH python -m compileall $pkgdir/usr/share/${pkgbase%$pkgflag} } diff --git a/libre/django-countries/PKGBUILD b/libre/django-countries/PKGBUILD new file mode 100644 index 000000000..24b667a67 --- /dev/null +++ b/libre/django-countries/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=django-countries +pkgver=1.5 +pkgdesc="Provides a country field for Django models" +license=('custom:MIT') +url="http://bitbucket.org/smileychris/django-countries/" + +pkgrel=1 +arch=(any) +depends=('django') +makedepends=('python2-distribute') +source=(http://pypi.python.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${pkgver}.tar.gz) +md5sums=(6c65fcc3aa7de065a54cdb619397626d) + +build() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's|#!/usr/bin/env python\s*$|#!/usr/bin/env python2|' setup.py */bin/*.py + # fix python->python2, and a typo! + sed -i 's|python regen[a-z]*\.py|python2 regenerage.py|' */bin/regenerate.py +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + ./setup.py install --root="$pkgdir/" --optimize=1 +} diff --git a/libre/luxblend25/PKGBUILD b/libre/luxblend25/PKGBUILD index 245aba247..26640795f 100644 --- a/libre/luxblend25/PKGBUILD +++ b/libre/luxblend25/PKGBUILD @@ -4,12 +4,12 @@ pkgbase=luxrender pkgname=luxblend25 srcver=3a928b723b29 -pkgver=1.1.v2.64 +pkgver=1.1.v2.65 _pkgver=${pkgver::3} reqname=blender reqver=${pkgver:5} -pkgrel=2 -pkgdesc='A LuxRender exporter for Blender-libre' +pkgrel=1 +pkgdesc='LuxRender exporter for Blender-libre' arch=( any ) diff --git a/libre/parabolaweb-utils/PKGBUILD b/libre/parabolaweb-utils/PKGBUILD index 5fdd12bdb..4220394dc 100644 --- a/libre/parabolaweb-utils/PKGBUILD +++ b/libre/parabolaweb-utils/PKGBUILD @@ -1,18 +1,19 @@ # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -. helper.sh +. "${startdir:-.}/helper.sh" # provides: -# _get_pkgver # _get_depends # _get_depends_nover (no version requirements) pkgname=parabolaweb-utils -pkgver=`_get_pkgver` -pkgrel=8 +pkgver=20120425.0657 pkgdesc="Utils for the Parabola website" -arch=('any') url="https://projects.parabolagnulinux.org/parabolaweb.git/" license=('GPL2') + +pkgrel=1 +epoch=1 +arch=('any') depends=( 'python2' # duh 'python2-flup' # for fcgi @@ -20,11 +21,9 @@ depends=( 'git' # used in parabolaweb-download 'libretools' # used in parabolaweb-{download,update} (libremessages) `_get_depends`) -backup=('etc/conf.d/parabolaweb') - -export pkgver - +conflicts=('django>=1.5') # hold it at 1.4 makedepends=(makepkg-git) +backup=('etc/conf.d/parabolaweb') source=(git://parabolagnulinux.org/parabolaweb.git parabolaweb-download @@ -34,6 +33,13 @@ source=(git://parabolagnulinux.org/parabolaweb.git parabolaweb.service parabolaweb.conf) +pkgver() { + cd "$srcdir/parabolaweb" + # get the date requirements_prod.txt was last modified + gitdate="$(git log -n1 --date=iso --format=format:'%cd' ./requirements_prod.txt)" + date -u +%Y%m%d.%H%M -d "$gitdate" +} + build() { : } diff --git a/libre/parabolaweb-utils/helper.sh b/libre/parabolaweb-utils/helper.sh index 5ce4182b3..ce8638e7e 100644 --- a/libre/parabolaweb-utils/helper.sh +++ b/libre/parabolaweb-utils/helper.sh @@ -1,35 +1,21 @@ _mksource() { - if [[ -z _DO_NOT_RUN_MKSOURCE ]]; then - _DO_NOT_RUN_MKSOURCE=true makepkg -o - fi -} - -_get_pkgver() { - if [[ -n $pkgver ]] && [[ $pkgver != 0.bogus ]]; then - echo $pkgver - else - _mksource 1>&2 - if [[ -f "${srcdir:-src}/parabolaweb/requirements_prod.txt" ]]; then - pushd "${srcdir:-src}/parabolaweb" >/dev/null - # get the date requirements_prod.txt was last modified - gitdate="$(git log -n1 --date=iso --format=format:'%cd' ./requirements_prod.txt)" - date -u +%Y%m%d.%H%M -d "$gitdate" - popd >/dev/null - else - echo 0.bogus - fi + pushd "${startdir:-.}" >/dev/null + if [[ -z $_DO_NOT_RUN_MKSOURCE && $0 =~ ^makepkg ]]; then + local flags=(-o) + (( EUID )) || flags+=(--asroot) + _DO_NOT_RUN_MKSOURCE=true "${0}" "${flags[@]}" fi + popd >/dev/null } _get_depends() { _mksource 1>&2 - if [[ -f "${srcdir:-src}/parabolaweb/requirements_prod.txt" ]]; then + if [[ -f "${srcdir:-${startdir:-.}/src}/parabolaweb/requirements_prod.txt" ]]; then pushd "${srcdir:-src}" >/dev/null - python2_packages='markdown|psycopg2|pyinotify|pytz|south' < parabolaweb/requirements_prod.txt sed -r \ - -e 's/.*/\L&/' -e 's/==/=/' \ - -e 's/^python-memcached/python2-memcached/' \ - -e "s/^(${python2_packages})/python2-&/" + -e 's/.*/\L&/' -e 's/==/>=/' \ + -e 's/^(python2?-)?/python2-/' \ + -e 's/python2-django/django/' popd >/dev/null fi } diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD index 9c5f6242c..8aad59fe4 100755 --- a/libre/your-freedom/PKGBUILD +++ b/libre/your-freedom/PKGBUILD @@ -24,4 +24,4 @@ package() { )) } -md5sums=('cc8ed9a33d0c58fcecc3323f831f687e') +md5sums=('b8c939de5aa75a92299f65210e510d61') diff --git a/pcr/emacs-mailcrypt/PKGBUILD b/pcr/emacs-mailcrypt/PKGBUILD new file mode 100644 index 000000000..8dad422c0 --- /dev/null +++ b/pcr/emacs-mailcrypt/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): Stefan Husmann <stefan-husmann@t-online.de> + +_pkgname=mailcrypt +pkgname=emacs-$_pkgname +pkgver=3.5.9 +pkgdesc="Emacs interface to PGP and GnuPG" +url="http://mailcrypt.sourceforge.net/" +license=('GPL') + +pkgrel=2.1 +arch=(any) +depends=(emacs) +install=$_pkgname.install +source=(http://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.gz + destdir.patch) + +build() { + cd "$srcdir/$_pkgname-$pkgver" + patch -Np1 -i "$srcdir/destdir.patch" + autoreconf + ./configure --prefix=/usr --infodir=/usr/share/info + make +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +md5sums=('18c0dea5dde0fc73168f4815df0d9db0' + '805f2c6bf624c946df2eefaf0edabcb3') diff --git a/pcr/emacs-mailcrypt/destdir.patch b/pcr/emacs-mailcrypt/destdir.patch new file mode 100644 index 000000000..a0159cd02 --- /dev/null +++ b/pcr/emacs-mailcrypt/destdir.patch @@ -0,0 +1,41 @@ +diff -ruN mailcrypt-3.5.9.orig/Makefile.in mailcrypt-3.5.9/Makefile.in +--- mailcrypt-3.5.9.orig/Makefile.in 2010-03-11 08:38:05.000000000 -0500 ++++ mailcrypt-3.5.9/Makefile.in 2012-12-13 18:38:59.000000000 -0500 +@@ -77,16 +77,16 @@ + + install: all installdirs install-info + for f in $(SOURCES); do \ +- $(INSTALL_DATA) $(srcdir)/$$f $(lispdir); \ ++ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(lispdir); \ + done; + for f in $(OBJECTS); do \ +- $(INSTALL_DATA) $$f $(lispdir); \ ++ $(INSTALL_DATA) $$f $(DESTDIR)$(lispdir); \ + done; + + # Make sure all installation directories actually exist + # by making them if necessary. + installdirs: mkinstalldirs +- $(srcdir)/mkinstalldirs $(lispdir) $(infodir) ++ $(srcdir)/mkinstalldirs $(DESTDIR)$(lispdir) $(DESTDIR)$(infodir) + + # If your install-info doesn't know how to look inside the .info file for the + # menu entry to add, try adding +@@ -95,14 +95,12 @@ + + install-info: info + cd $(srcdir) && for file in $(INFOFILES); do\ +- $(INSTALL_DATA) $$file $(infodir)/$$file; \ ++ $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file; \ + done +- -$(INSTALL_INFO) --info-dir=$(infodir) mailcrypt.info + + uninstall: +- -cd $(lispdir) && rm -f $(SOURCES) $(OBJECTS) +- -cd $(infodir) && rm -f $(INFOFILES) +- $(INSTALL_INFO) --remove --info-dir=$(infodir) mailcrypt.info ++ -cd $(DESTDIR)$(lispdir) && rm -f $(SOURCES) $(OBJECTS) ++ -cd $(DESTDIR)$(infodir) && rm -f $(INFOFILES) + + info: $(INFOFILES) + diff --git a/pcr/emacs-mailcrypt/mailcrypt.install b/pcr/emacs-mailcrypt/mailcrypt.install new file mode 100644 index 000000000..3257b7338 --- /dev/null +++ b/pcr/emacs-mailcrypt/mailcrypt.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(mailcrypt.info) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |