Skip to content

Instantly share code, notes, and snippets.

@bbidulock
Last active August 27, 2018 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbidulock/b380a931587913ed60c06d389032500c to your computer and use it in GitHub Desktop.
Save bbidulock/b380a931587913ed60c06d389032500c to your computer and use it in GitHub Desktop.
PKGBUILD for coda
# Maintainer Marcel Kleinfeller <marcel@oompf.de>
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