Created
February 25, 2014 19:15
-
-
Save anonymous/9215570 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=detox | |
pkgver=1.2.0 | |
pkgrel=1 | |
pkgdesc="An utility designed to clean up filenames by replacing characters with standard equivalents" | |
arch=('i686' 'x86_64') | |
url="http://detox.sourceforge.net/" | |
license=('BSD') | |
makedepends=('flex') | |
options=('!makeflags') | |
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2" "http://sourceforge.net/p/detox/patches/_discuss/thread/02e5e473/ae23/attachment/detox-1.2.0.fix-invalid-memory-access.patch") | |
md5sums=('da34c6bc3c68ce2fb008e25066e72927' '98f2c7cf5610bd4568d6e0e75af505af') | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
./configure --prefix=/usr --sysconfdir=/etc/detox | |
make | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
patch -p1 -i ../detox-1.2.0.fix-invalid-memory-access.patch | |
make DESTDIR=${pkgdir} install | |
install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \ | |
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment