diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-07-08 02:24:47 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-07-08 02:24:47 -0400 |
commit | 06a39f20e68f6b9fc114712f6015091c9893af4a (patch) | |
tree | 22d7782701a2871a9d6f9e88dcece464df58e754 /libre/dbscripts/PKGBUILD | |
parent | a83f89a1020cbb6e3cf8ab5bc5445a33c8a9a528 (diff) | |
download | abslibre-06a39f20e68f6b9fc114712f6015091c9893af4a.tar.gz abslibre-06a39f20e68f6b9fc114712f6015091c9893af4a.tar.bz2 abslibre-06a39f20e68f6b9fc114712f6015091c9893af4a.zip |
add libre/dbscripts
Diffstat (limited to 'libre/dbscripts/PKGBUILD')
-rw-r--r-- | libre/dbscripts/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libre/dbscripts/PKGBUILD b/libre/dbscripts/PKGBUILD new file mode 100644 index 000000000..400a5c55c --- /dev/null +++ b/libre/dbscripts/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=dbscripts +pkgver=20160708 +_gitver=70357110197aa7e954bd50593c36721f4d547911 +pkgdesc='Server-side programs for Parabola Pacman repositories' +url='https://git.parabola.nu/packages/dbscripts.git/' +license=('GPL') +backup=( + etc/$pkgname/config + etc/$pkgname/config.testing + etc/$pkgname/db-check-nonfree.conf + etc/$pkgname/db-import-archlinux.conf + etc/$pkgname/db-import-archlinuxarm.conf +) + +pkgrel=1 +arch=('any') +depends=(librelib xbs) +checkdepends=(libretools) +source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('c9c021bcfae039cfd20cec8b1986aea8') + +mksource=("$pkgname-$pkgver::git://git.parabola.nu/packages/dbscripts.git/#commit=$_gitver") +mkmd5sums=('SKIP') + +package() { + + mkdir -p "$pkgdir"/opt + cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/$pkgname" + + mkdir -p "$pkgdir"/usr/bin + find "$pkgdir/opt/$pkgname" -maxdepth 1 -type f -executable -exec ln -sr {} "$pkgdir"/usr/bin \; + + mkdir -p "$pkgdir"/etc/$pkgname + local file + for file in "${backup[@]}"; do + mv -T "$pkgdir/opt/$pkgname/${file##*/}" "$pkgdir/$file" + ln -sr "$pkgdir/$file" "$pkgdir/opt/$pkgname" + done + + mkdir -p "$pkgdir"/usr/share/doc/$pkgname + ln -sr "$pkgdir"/opt/$pkgname/README "$pkgdir"/usr/share/doc/$pkgname +} |