blob: 3ae0687b9698ad63458273c3869a31f2e1607326 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=shmig-git
pkgver=20140727
pkgrel=1
pkgdesc="Database migration tool written in BASH"
arch=('any')
depends=('bash')
makedepends=('git' 'make')
optdepends=('mariadb: MySQL support'
'postgresql: PostgreSQL support'
'sqlite: SQLite support')
url="https://github.com/naquad/shmig"
license=('BSD')
source=(git+https://github.com/naquad/shmig)
sha256sums=('SKIP')
provides=('shmig')
conflicts=('shmig')
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short --no-show-signature | sed "s|-||g"
}
package() {
cd ${pkgname%-git}
msg 'Installing...'
install -dm 755 "$pkgdir/usr/bin"
make PREFIX="$pkgdir/usr" install
msg 'Cleaning up pkgdir...'
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}
|