add PKGBUILD.in and openmedialibrary.spec
This commit is contained in:
parent
b7c6c44cd1
commit
c713c80c18
5 changed files with 108 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,3 +4,6 @@ debian/openmedialibrary.debhelper.log
|
|||
debian/openmedialibrary.substvars
|
||||
debian/openmedialibrary/
|
||||
debian/stamp-makefile-build
|
||||
PKGBUILD
|
||||
openmedialibrary.spec
|
||||
*.tar.xz
|
||||
|
|
12
Makefile
12
Makefile
|
@ -1,4 +1,4 @@
|
|||
VERSION=0.1
|
||||
VERSION=0.2
|
||||
PROG = bin/openmedialibrary
|
||||
|
||||
PREFIX ?= /usr
|
||||
|
@ -12,11 +12,10 @@ all: ${PROG} ${DESKTOP}
|
|||
install: ${PROG}
|
||||
@mkdir -p "${SHAREDIR}/applications"
|
||||
@mkdir -p "${BINDIR}"
|
||||
${INSTALL} -m 555 -o root -g root ${PROG} ${BINDIR}
|
||||
${INSTALL} -m 755 -o root -g root -d ${SHAREDIR}/openmedialibrary
|
||||
${INSTALL} -m 444 -o root openmedialibrary.desktop ${SHAREDIR}/applications/openmedialibrary.desktop
|
||||
${INSTALL} -m 555 ${PROG} ${BINDIR}
|
||||
${INSTALL} -m 755 -d ${SHAREDIR}/openmedialibrary
|
||||
${INSTALL} -m 444 openmedialibrary.desktop ${SHAREDIR}/applications/openmedialibrary.desktop
|
||||
@cp -r openmedialibrary ${SHAREDIR}
|
||||
@chown -R root:root ${SHAREDIR}/openmedialibrary
|
||||
|
||||
clean:
|
||||
|
||||
|
@ -29,4 +28,7 @@ dist:
|
|||
PKGBUILD: PKGBUILD.in dist
|
||||
sed -e "s/VERSION/${VERSION}/g" -e "s/SHA1SUM/`sha1sum openmedialibrary-${VERSION}.tar.xz | cut -f1 -d' '`/g" PKGBUILD.in > PKGBUILD
|
||||
|
||||
openmedialibrary.spec: openmedialibrary.spec.in dist
|
||||
sed -e "s/VERSION/${VERSION}/g" -e "s/SHA1SUM/`sha1sum openmedialibrary-${VERSION}.tar.xz | cut -f1 -d' '`/g" openmedialibrary.spec.in > openmedialibrary.spec
|
||||
|
||||
.PHONY: all install uninstall dist
|
||||
|
|
18
PKGBUILD.in
Normal file
18
PKGBUILD.in
Normal file
|
@ -0,0 +1,18 @@
|
|||
# $Id$
|
||||
# Maintainer: Open Media Library <openmedialibrary@openmedialibrary.com>
|
||||
|
||||
pkgname=openmedialibrary
|
||||
pkgver=VERSION
|
||||
pkgrel=1
|
||||
pkgdesc="manage and sync your digital media collections"
|
||||
url="https://openmedialibrary.com"
|
||||
license=('GPL3')
|
||||
arch=('any')
|
||||
depends=('python' 'python-pillow' 'python-lxml' 'python-pyopenssl' 'python-crypto' 'poppler' 'python-gobject')
|
||||
source=(https://downloads.openmedialibrary.com/$pkgname-$pkgver.tar.xz)
|
||||
sha1sums=('SHA1SUM')
|
||||
|
||||
package() {
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
make install PREFIX=/usr DESTDIR="${pkgdir}"
|
||||
}
|
40
openmedialibrary.spec
Normal file
40
openmedialibrary.spec
Normal file
|
@ -0,0 +1,40 @@
|
|||
Name: openmedialibrary
|
||||
Version: 0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Open Media Library - manage and sync your digital media collections
|
||||
|
||||
License: GPLv3+
|
||||
URL: https://openmedialibrary.com/
|
||||
Source0: https://downloads.openmedialibrary.com/%{name}-%{version}.tar.xz
|
||||
|
||||
Requires: python3, python3-pillow, python3-lxml, python3-pyOpenSSL, python3-crypto, python3-gobject, poppler-utils, gtk3
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
manage and sync your digital media collections
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} PREFIX=/usr
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%make_install
|
||||
|
||||
|
||||
%files
|
||||
%{_bindir}/openmedialibrary
|
||||
%{_datadir}/%{name}/
|
||||
%{_datadir}/applications/openmedialibrary.desktop
|
||||
%doc
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Feb 6 2016 makerpm
|
||||
-
|
40
openmedialibrary.spec.in
Normal file
40
openmedialibrary.spec.in
Normal file
|
@ -0,0 +1,40 @@
|
|||
Name: openmedialibrary
|
||||
Version: VERSION
|
||||
Release: 1%{?dist}
|
||||
Summary: Open Media Library - manage and sync your digital media collections
|
||||
|
||||
License: GPLv3+
|
||||
URL: https://openmedialibrary.com/
|
||||
Source0: https://downloads.openmedialibrary.com/%{name}-%{version}.tar.xz
|
||||
|
||||
Requires: python3, python3-pillow, python3-lxml, python3-pyOpenSSL, python3-crypto, python3-gobject, poppler-utils, gtk3
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
manage and sync your digital media collections
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} PREFIX=/usr
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%make_install
|
||||
|
||||
|
||||
%files
|
||||
%{_bindir}/openmedialibrary
|
||||
%{_datadir}/%{name}/
|
||||
%{_datadir}/applications/openmedialibrary.desktop
|
||||
%doc
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Feb 6 2016 makerpm
|
||||
-
|
Loading…
Reference in a new issue