updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / libtrash / PKGBUILD
blobb870d83ae38958537ff060905b61d4caffd89877
1 # $Id: PKGBUILD 24969 2010-08-29 20:08:31Z jlichtblau $
2 # Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
3 # Contributor: arjan <arjan@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=libtrash
7 pkgver=3.2
8 pkgrel=2
9 pkgdesc="A shared, preloaded library that implements a trash can under Linux"
10 arch=('i686' 'x86_64')
11 url="http://pages.stern.nyu.edu/~marriaga/software/libtrash/"
12 license=('GPL')
13 depends=('glibc')
14 makedepends=('patch' 'python')
15 install=$pkgname.install
16 source=(http://pages.stern.nyu.edu/~marriaga/software/libtrash/$pkgname-latest.tgz libtrash.patch libtrash.sh)
17 md5sums=('147f645738088c83738259376737bc42'
18          '662e030819f2954b59e7646c77855f6c'
19          'de716ae481adc8e88ddd32ea72808230')
21 build() {
22   cd ${srcdir}/$pkgname-$pkgver
24   patch -Np1 -i $startdir/src/libtrash.patch
26   install -d ${pkgdir}/usr/lib ${pkgdir}/etc/profile.d
27   make INSTLIBDIR=${pkgdir}/usr/lib SYSCONFFILE=${pkgdir}/etc
30 package() {
31   cd ${srcdir}/$pkgname-$pkgver
33   make INSTLIBDIR=${pkgdir}/usr/lib SYSCONFFILE=${pkgdir}/etc install
34   install -D -m 644 ${srcdir}/libtrash.sh ${pkgdir}/etc/profile.d/libtrash.sh