aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/PKGBUILD
blob: d1b687e8cb43462ff80f36f553f0d69f324296ff (plain) (tree)
1
2
3
4

                                                 

            


















                                                                               

                                                                     
                                                                    
                                                                                          

                                

                                                                  
                                                                  
 
# Maintainer: Egor Tensin <Egor.Tensin@gmail.com>
pkgname=config-links
pkgver=2.0.1
pkgrel=1
pkgdesc='Config file sharing'
arch=(any)
url='https://github.com/egor-tensin/config-links'
license=(MIT)
depends=(bash)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=(SKIP)

package() {
    cd "$srcdir"

    install -D -m 0644 -t "$pkgdir/usr/share/doc/config-links" "../README.Arch"

    cd "$pkgname-$pkgver"

    install -D -m 0644 -t "$pkgdir/usr/share/config-links" LICENSE.txt

    install -D -m 0644 -t "$pkgdir/usr/share/doc/config-links" README.md

    install -D -m 0755 -t "$pkgdir/usr/lib/config-links" links-update
    install -D -m 0755 -t "$pkgdir/usr/lib/config-links" links-remove
    install -D -m 0755 -t "$pkgdir/usr/lib/config-links" links-chmod
    find src -type f -exec install -D -m 0644 -t "$pkgdir/usr/lib/config-links/src" {} ';'

    install -d "$pkgdir/usr/bin"
    ln -s -- /usr/lib/config-links/links-update "$pkgdir/usr/bin/"
    ln -s -- /usr/lib/config-links/links-remove "$pkgdir/usr/bin/"
    ln -s -- /usr/lib/config-links/links-chmod  "$pkgdir/usr/bin/"
}