upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / smbnetfs / trunk / PKGBUILD
blob656ed8b005c07350c50a729295fb326f7578fa6d
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 pkgname=smbnetfs
5 pkgver=0.6.3
6 pkgrel=5
7 pkgdesc="small C program that mounts Microsoft network neighborhood in single directory."
8 arch=('x86_64')
9 url="http://smbnetfs.sourceforge.net/"
10 license=('GPL')
11 depends=('fuse2' 'smbclient')
12 backup=('etc/smbnetfs/.smb/smb.conf'
13         'etc/smbnetfs/.smb/smbnetfs.conf'
14         'etc/smbnetfs/.smb/smbnetfs.auth'
15         'etc/smbnetfs/.smb/smbnetfs.host')
16 install=smbnetfs.install
17 options=(docs)
18 source=(https://downloads.sourceforge.net/smbnetfs/$pkgname-$pkgver.tar.bz2
19         conf-smbnetfs
20         smbnetfs.service
21         smbnetfs.sysusers
22   smbnetfs.tmpfiles)
23 sha256sums=('eac37b9769fbe9c3f4baf3eb64c61a6b59ad4f2aa05dfddcba5a1ac4adf4d560'
24             'ca3b686c37fe77193e8df86efcaadb8fe809dfaa8cd62effde6b038af07ea226'
25             'f78368434d9abc56cd333ec157a7ad82a6fa54555e1f5b786e8294b394be0b7b'
26             '142865e5292756498c644a7fd7bf00ebe689cb3c712e582fa0f10fac105b6ab1'
27             'ca042e7a0a26d9e2a0ab1cd590bdd0385ab60fdc46a437a38af4c0a12b9a27a3')
29 prepare() {
30   cd "$srcdir"/$pkgname-$pkgver
31   sed -i '/xattr.h/d' src/function.c
34 build() {
35   cd "$srcdir"/$pkgname-$pkgver
36   sed -i 's|libsmbclient.h|samba-4.0/libsmbclient.h|g' \
37     src/smb_conn_srv.c src/smb_conn_proto.h src/function.c src/main.c src/event.c
38   [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --docdir=/usr/share/doc/smbnetfs --with-gnome-keyring=no
39   make
42 package() {
43   cd "$srcdir"/$pkgname-$pkgver
45   make DESTDIR="$pkgdir" install
47   mv "$pkgdir"/usr/share/doc/smbnetfs* "$pkgdir"/usr/share/doc/smbnetfs
49   mkdir -p "$pkgdir"/etc/smbnetfs/.smb
50   install -Dm644 "$srcdir/$pkgname.sysusers" \
51     "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
52   install -Dm644 "$srcdir/$pkgname.tmpfiles" \
53     "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
54   install -m0644 "$srcdir"/$pkgname-$pkgver/conf/* "$pkgdir"/etc/smbnetfs/.smb/
55   install -Dm0644 "$srcdir"/$pkgname-$pkgver/README "$pkgdir"/usr/share/doc/smbnetfs/README
56   install -Dm0644 "$srcdir"/conf-smbnetfs "$pkgdir"/etc/conf.d/smbnetfs
57   install -Dm0644 "$srcdir"/smbnetfs.service "$pkgdir"/usr/lib/systemd/system/smbnetfs.service
58   touch "$pkgdir"/etc/smbnetfs/.smb/smb.conf