postr: new package.

This commit is contained in:
Andrea Zagli
2014-10-18 10:13:33 +02:00
parent 4d9d6a76da
commit 98973bf758
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
--- ./configure.ac.orig 2014-10-17 21:04:58.784468100 +0200
+++ ./configure.ac 2014-10-17 21:05:12.577242800 +0200
@@ -8,24 +8,7 @@
AM_PATH_PYTHON
PKG_CHECK_MODULES(POSTR,
- pygtk-2.0
- nautilus-python >= 0.6.1)
-
-AC_ARG_WITH(nautilus-extension-dir,
- [AS_HELP_STRING([--with-nautilus-extension-dir],
- [specify the nautilus extension directory])])
-
-AC_MSG_CHECKING([for nautilus extension directory])
-if test -n "$with_nautilus_extension_dir"; then
- NAUTILUS_EXTENSION_DIR=$with_nautilus_extension_dir
-else
-dnl nautilus-python provides the pythondir variable, however its
-dnl path is absolute and the prefix can not be overrided (aarrgh!).
-dnl So, we have to use a workaround.
- test "x$prefix" != "xNONE" && NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=pythondir nautilus-python | sed -n -e 's,/$,,' -e '/.*\/lib\/nautilus\/.*\/python$/{s,.*/\(lib/nautilus/.*/python\)$,\1,;p;q;}'`
- NAUTILUS_EXTENSION_DIR=[$prefix/$NAUTILUS_EXTENSION_DIR]
-fi
-AC_SUBST([nautilusextensiondir], [$NAUTILUS_EXTENSION_DIR])
+ pygtk-2.0)
dnl i10n support / gettext
IT_PROG_INTLTOOL([0.40.0])

44
mingw-w64-postr/PKGBUILD Normal file
View File

@@ -0,0 +1,44 @@
# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
_realname=postr
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.13
pkgrel=1
arch=('any')
pkgdesc="Upload photos to Flickr (mingw-w64)"
options=(strip staticlibs)
depends=("${MINGW_PACKAGE_PREFIX}-python2-pygtk")
makedepends=()
options=('strip' 'staticlibs')
license=("GPL 2")
url="http://www.gnome.org"
source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver}/${_realname}-$pkgver.tar.xz
001-win.patch)
sha256sums=('3d5d4515892c8b81494257d7fc35d1c13a857bbdaf7b01ba67bde62ebddb962c'
'7f963d3703a7e0fc678622a69961a6dabb00af050086520fd122fdcc37fbc292')
prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
patch -p1 -i ${srcdir}/001-win.patch
AUTOPOINT='intltoolize --automake --copy' autoreconf -f -i
}
build() {
mkdir -p build-${MINGW_CHOST}
cd build-${MINGW_CHOST}
../${_realname}-${pkgver}/configure \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST} \
--build=${MINGW_CHOST} \
--prefix=${MINGW_PREFIX} \
--libexecdir=${MINGW_PREFIX}/lib
make
}
package() {
cd "$srcdir/build-${MINGW_CHOST}"
make DESTDIR=$pkgdir install
}