[aur-general] python-apsw package
I have just updated and started to maintain the python-apsw package (the current version in AUR was from Oct 2007, when the last version is from Feb 2009) This package is needed for the tribler package (bittorrent client) Please let me know if you use this library and therefore whether the package is useful. And of course, give me any suggestion for the PKGBUILD since this is my first package I submit. Have a good day!! -- Juan Miguel Cejuela ~http://www.ashrentum.net [My Homepage] ~http://www.ashrentum.net/lachanza [Colección de Chistes en Español]
2009/4/12 Juan Miguel Cejuela <jmcejuela@gmail.com>:
I have just updated and started to maintain the python-apsw package (the current version in AUR was from Oct 2007, when the last version is from Feb 2009)
This package is needed for the tribler package (bittorrent client)
Please let me know if you use this library and therefore whether the package is useful.
And of course, give me any suggestion for the PKGBUILD since this is my first package I submit.
Have a good day!!
The PKGBUILD looks OK, just use $srcdir and $pkgdir since $startdir is not guaranteed to remain around. So the build() function would be: build() { cd $srcdir/apsw-3.6.11-r1 python setup.py install --root=$pkgdir/ install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } -- Abhishek
To Abhishek, Thank you for answering. However, I can't make $srcdir/LICENSE since the license is not included in their source. I made it copying it from their web. *Then, how I can move LICENSE without using $startdir?* I can do ../$srcdir but that seems even worse I see in some packages that in their source array include simply LICENSE plus the real source. I guess the file LICENSE located in the package tarball is fetched and then included in the src, but I don't see any documentation about this in the wiki. 2009/4/12 Abhishek Dasgupta <abhidg@gmail.com>
I have just updated and started to maintain the python-apsw package (the current version in AUR was from Oct 2007, when the last version is from Feb 2009)
This package is needed for the tribler package (bittorrent client)
Please let me know if you use this library and therefore whether the
2009/4/12 Juan Miguel Cejuela <jmcejuela@gmail.com>: package
is useful.
And of course, give me any suggestion for the PKGBUILD since this is my first package I submit.
Have a good day!!
The PKGBUILD looks OK, just use $srcdir and $pkgdir since $startdir is not guaranteed to remain around.
So the build() function would be: build() { cd $srcdir/apsw-3.6.11-r1 python setup.py install --root=$pkgdir/
install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE }
-- Abhishek
-- Juan Miguel Cejuela ~http://www.ashrentum.net [My Homepage] ~http://www.ashrentum.net/lachanza [Colección de Chistes en Español]
Juan Miguel Cejuela wrote:
To Abhishek,
Thank you for answering. However, I can't make $srcdir/LICENSE since the license is not included in their source. I made it copying it from their web.
*Then, how I can move LICENSE without using $startdir?*
I can do ../$srcdir but that seems even worse
$srcdir = $startdir/src so you would just do something like: install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses Allan
2009/4/13 Juan Miguel Cejuela <jmcejuela@gmail.com>:
To Abhishek,
Thank you for answering. However, I can't make $srcdir/LICENSE since the license is not included in their source. I made it copying it from their web.
*Then, how I can move LICENSE without using $startdir?*
I can do ../$srcdir but that seems even worse
I see in some packages that in their source array include simply LICENSE plus the real source. I guess the file LICENSE located in the package tarball is fetched and then included in the src, but I don't see any documentation about this in the wiki.
You should keep LICENSE in the source array. All files in the source array are symlinked in $srcdir, so you'll be able to use $srcdir/LICENSE. The current PKGBUILD does work, but I guess you manually made a tarball and uploaded it. If you'd used makepkg --source then LICENSE would not have been included in the src.tar.gz produced. -- Abhishek
participants (3)
-
Abhishek Dasgupta
-
Allan McRae
-
Juan Miguel Cejuela