Last active
August 27, 2018 06:24
-
-
Save bbidulock/b380a931587913ed60c06d389032500c to your computer and use it in GitHub Desktop.
PKGBUILD for coda
This file contains hidden or 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
# Maintainer Marcel Kleinfeller <[email protected]> | |
pkgname=coda | |
pkgver=6.14.0 | |
pkgrel=3 | |
pkgdesc="A distributed file system with disconnected operation." | |
depends=('bash' 'perl') | |
arch=(i686 x86_64 armv7h) | |
url="http://coda.cs.cmu.edu/" | |
source=("http://coda.cs.cmu.edu/coda/source/$pkgname-$pkgver.tar.xz") | |
sha512sums=('e131b7e4a8661af05708b55c4210e5ec88c7d46a9af4eb9a82267516f293da00ddf50a4279c88e22c5abb619263c56d42c7265a7fa2f2d81946fd7dd951e8d40') | |
license=("GPL") | |
prepare() { | |
cd $pkgname-$pkgver | |
for f in al/pdbtool.c al/pdbtool.8 al/pdb.h al/Makefile.am auth2/passwd.coda.5 scripts/vice-setup-user.in ; do | |
sed -i -e 's,pdbtool,cpdbtool,g' coda-src/$f | |
sed -i -e 's,PDBTOOL,CPDBTOOL,g' coda-src/$f | |
done | |
mv coda-src/al/pdbtool.c coda-src/al/cpdbtool.c | |
mv coda-src/al/pdbtool.8 coda-src/al/cpdbtool.8 | |
./bootstrap.sh | |
} | |
build() { | |
cd $pkgname-$pkgver | |
./configure \ | |
--prefix=/usr \ | |
--sysconfdir=/etc \ | |
--sbindir=/usr/bin \ | |
--libdir=/usr/lib \ | |
--datadir=/usr/share \ | |
--includedir=/usr/include \ | |
--enable-client \ | |
--enable-server | |
make V=0 | |
} | |
package() { | |
cd $pkgname-$pkgver | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment