package creation fo Archlinux

This commit is contained in:
a-sansara 2012-07-14 15:39:02 +00:00
parent 8033f2ed2d
commit 704d9fb0da
3 changed files with 36 additions and 0 deletions

24
pkg/archlinux/PKGBUILD Normal file
View File

@ -0,0 +1,24 @@
# Maintainer : a-Sansara <a-sansara@clochardprod.net>
# Contributor:
pkgname=gpyfsa
pkgver=0.33
pkgrel=1
pkgdesc='a gtk+ GUI front-end of fsarchiver with mounting facilities'
arch=('any')
url='http://sourceforge.net/projects/gpyfsa/'
license=('GPL3')
depends=('gksu' 'python2' 'pygtk' 'desktop-file-utils' 'fsarchiver>=0.6.8')
install="${pkgname}.install"
source=("http://sourceforge.net/projects/gpyfsa/files/packages/archlinux/${pkgname}-${pkgver}.tar.bz2/download")
md5sums=('0e6f2f47d11e7723dbe3fcf14a8c4465')
build() {
cd "${srcdir}/${pkgname}"
sed -i -e "s|env python$|env python2|" GPyFSA/*.py
python2 setup.py build
}
package() {
cd "${srcdir}/${pkgname}"
python2 setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
}

Binary file not shown.

View File

@ -0,0 +1,12 @@
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
echo "you should mannually remove /var/log/gpyfsa.log"
}