Flatten directory structure

This commit is contained in:
Florian Dejonckheere 2015-02-05 10:07:46 +01:00
parent f9cfc468cd
commit f45d6f23e7
2 changed files with 10 additions and 16 deletions

View file

@ -3,7 +3,6 @@ pkgbase = recuerde
pkgver = 0.2.0_rc4
pkgrel = 2
url = http://code.google.com/p/recuerde
changelog = ChangeLog
arch = i686
arch = x86_64
license = GPL

View file

@ -3,26 +3,21 @@
pkgname=recuerde
pkgver=0.2.0_rc4
_pkgver=0.2.0-rc4
_realver=0.2.0-rc4
pkgrel=2
pkgdesc="A simple and intuitive todo list."
arch=('i686' 'x86_64')
url="http://code.google.com/p/recuerde"
license=('GPL')
depends=('python' 'wxpython' 'pygtk' 'sqlite3')
changelog=ChangeLog
source=("http://recuerde.googlecode.com/files/${pkgname}-${_pkgver}.tar.bz2")
md5sums=('61c8974e09d9b7a92ff758f8a8d61f9b')
source=(http://recuerde.googlecode.com/files/$pkgname-$_realver.tar.bz2)
md5sums=(61c8974e09d9b7a92ff758f8a8d61f9b)
prepare(){
cd "${srcdir}/${pkgname}-${_pkgver}"
sed 's|/usr/|../../pkg/usr/|' -i install
sed 's|ln -s|#ln -s|' -i install
}
package(){
cd "${srcdir}/${pkgname}-${_pkgver}"
./install
echo -e "#!/bin/bash\n\ncd /usr/lib/${pkgname}/\npython2 ./main.pyw" > ${pkgdir}/usr/bin/${pkgname}
chmod 755 ${pkgdir}/usr/bin/${pkgname}
build() {
cd $startdir/src/$pkgname-$_realver
sed 's|/usr/|../../pkg/usr/|' -i install
sed 's|ln -s|#ln -s|' -i install
./install
echo -e "#!/bin/bash\n\ncd /usr/lib/$pkgname/\npython2 ./main.pyw" >$pkgdir/usr/bin/$pkgname
chmod 755 $pkgdir/usr/bin/$pkgname
}