summaryrefslogtreecommitdiff
path: root/community/libtrash/PKGBUILD
blob: b870d83ae38958537ff060905b61d4caffd89877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 24969 2010-08-29 20:08:31Z jlichtblau $
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: arjan <arjan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=libtrash
pkgver=3.2
pkgrel=2
pkgdesc="A shared, preloaded library that implements a trash can under Linux"
arch=('i686' 'x86_64')
url="http://pages.stern.nyu.edu/~marriaga/software/libtrash/"
license=('GPL')
depends=('glibc')
makedepends=('patch' 'python')
install=$pkgname.install
source=(http://pages.stern.nyu.edu/~marriaga/software/libtrash/$pkgname-latest.tgz libtrash.patch libtrash.sh)
md5sums=('147f645738088c83738259376737bc42'
         '662e030819f2954b59e7646c77855f6c'
         'de716ae481adc8e88ddd32ea72808230')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  patch -Np1 -i $startdir/src/libtrash.patch

  install -d ${pkgdir}/usr/lib ${pkgdir}/etc/profile.d
  make INSTLIBDIR=${pkgdir}/usr/lib SYSCONFFILE=${pkgdir}/etc
}

package() {
  cd ${srcdir}/$pkgname-$pkgver

  make INSTLIBDIR=${pkgdir}/usr/lib SYSCONFFILE=${pkgdir}/etc install
  install -D -m 644 ${srcdir}/libtrash.sh ${pkgdir}/etc/profile.d/libtrash.sh
}